ci: ajout branches staging-perco et staging-fefe dans le workflow deploy
Deploy HouseHub / deploy (push) Successful in 1s

- Push sur staging-perco → deploy /opt/container/househub-perco
- Push sur staging-fefe  → deploy /opt/container/househub-fefe
- Push sur main          → deploy /opt/container/househub (production)
- Utiliser `git deploy <env>` pour envoyer sur le bon environnement

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
perco
2026-05-20 11:52:12 +02:00
co-authored by Claude Sonnet 4.6
parent 836533fcf6
commit 3675f0c01a
+19 -4
View File
@@ -2,7 +2,7 @@ name: Deploy HouseHub
on:
push:
branches: [main]
branches: [main, staging-perco, staging-fefe]
jobs:
deploy:
@@ -15,6 +15,21 @@ jobs:
username: perco
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /opt/container/househub
git pull
echo "✓ HouseHub mis à jour"
BRANCH="${{ github.ref_name }}"
case "$BRANCH" in
main)
cd /opt/container/househub
git pull
echo "✓ Production mise à jour"
;;
staging-perco)
cd /opt/container/househub-perco
git pull origin staging-perco
echo "✓ Staging Perco mis à jour"
;;
staging-fefe)
cd /opt/container/househub-fefe
git pull origin staging-fefe
echo "✓ Staging Fefe mis à jour"
;;
esac