From 3675f0c01aa3a03250cef261138dc6d122a22729 Mon Sep 17 00:00:00 2001 From: perco Date: Wed, 20 May 2026 11:52:12 +0200 Subject: [PATCH] ci: ajout branches staging-perco et staging-fefe dans le workflow deploy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 ` pour envoyer sur le bon environnement Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/deploy.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index b1ac751..73c5ac8 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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