ci: ajout branches staging-perco et staging-fefe dans le workflow deploy
Deploy HouseHub / deploy (push) Successful in 1s
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:
co-authored by
Claude Sonnet 4.6
parent
836533fcf6
commit
3675f0c01a
@@ -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: |
|
||||
BRANCH="${{ github.ref_name }}"
|
||||
case "$BRANCH" in
|
||||
main)
|
||||
cd /opt/container/househub
|
||||
git pull
|
||||
echo "✓ HouseHub mis à jour"
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user