ci: déclencher le déploiement sur push et externaliser DEPLOY_PATH
All checks were successful
Symfony CD - Scheduled Deploy / 🚀 Deploy to Production (push) Successful in 1m23s

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Serreau Jovann
2026-04-10 17:39:14 +02:00
parent ecc180ca0d
commit 021910df9d

View File

@@ -16,8 +16,6 @@ permissions:
jobs:
deploy:
name: 🚀 Deploy to Production
# Le job ne se lance que pour le cron ou manuellement, pas au push
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Deploy with SSH
@@ -28,4 +26,4 @@ jobs:
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
script: |
cd /var/www/ludikevent-intranet && sudo update-alternatives --set php /usr/bin/php8.4 && php bin/console app:maintenance on && git reset --hard HEAD && git pull origin master && sh ./update.sh && php bin/console app:maintenance off && php bin/console app:purge-cloudflare && sudo update-alternatives --set php /usr/bin/php8.3
cd ${{ secrets.DEPLOY_PATH }} && sudo update-alternatives --set php /usr/bin/php8.4 && php bin/console app:maintenance on && git reset --hard HEAD && git pull origin master && sh ./update.sh && php bin/console app:maintenance off && php bin/console app:purge-cloudflare && sudo update-alternatives --set php /usr/bin/php8.3