Files
ludikevent_crm/.gitea/workflows/install-deps.yml
Serreau Jovann 021910df9d
All checks were successful
Symfony CD - Scheduled Deploy / 🚀 Deploy to Production (push) Successful in 1m31s
ci: déclencher le déploiement sur push et externaliser DEPLOY_PATH
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 17:39:14 +02:00

30 lines
1.0 KiB
YAML

name: Symfony CD - Scheduled Deploy
on:
push:
branches:
- master
schedule:
# Déclenchement à 2h, 6h, 12h, 16h, 18h et 20h UTC
- cron: '0 2,20 * * *'
workflow_dispatch: # Bouton manuel dans GitHub Actions
permissions:
contents: read
id-token: write
jobs:
deploy:
name: 🚀 Deploy to Production
runs-on: ubuntu-latest
steps:
- name: Deploy with SSH
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
port: 22
script: |
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