From f57e4d94f8e6553215b0d9919a6dd71dc33f4971 Mon Sep 17 00:00:00 2001 From: LathanDevers Date: Mon, 3 Aug 2026 22:14:37 +0200 Subject: [PATCH] correct deploy --- .gitea/workflows/deploy-environments.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/deploy-environments.yml b/.gitea/workflows/deploy-environments.yml index 9136519..6be6fc4 100644 --- a/.gitea/workflows/deploy-environments.yml +++ b/.gitea/workflows/deploy-environments.yml @@ -64,18 +64,18 @@ jobs: run: | # 2. On attribue les bons identifiants selon la branche if [ "$BRANCH" == "master" ]; then - TARGET_USER=$PROD_U; TARGET_PASS=$PROD_P; DOMAIN="aegis.gise.be" + TARGET_USER=$PROD_U; TARGET_PASS=$PROD_P; elif [ "$BRANCH" == "acc" ]; then - TARGET_USER=$ACC_U; TARGET_PASS=$ACC_P; DOMAIN="acc-aegis.gise.be" + TARGET_USER=$ACC_U; TARGET_PASS=$ACC_P; elif [ "$BRANCH" == "test" ]; then - TARGET_USER=$TEST_U; TARGET_PASS=$TEST_P; DOMAIN="test-aegis.gise.be" + TARGET_USER=$TEST_U; TARGET_PASS=$TEST_P; else - TARGET_USER=$DEV_U; TARGET_PASS=$DEV_P; DOMAIN="dev-aegis.gise.be" + TARGET_USER=$DEV_U; TARGET_PASS=$DEV_P; fi - echo "Déploiement de la branche [$BRANCH] vers le domaine [$DOMAIN]..." + echo "Déploiement de la branche [$BRANCH]" - # 3. Exécution du script FTP (notez le chemin adapté à HestiaCP) + # 3. Exécution du script FTP cat << EOF > script.lftp set ftp:passive-mode true set ftp:ssl-allow no @@ -84,7 +84,7 @@ jobs: set net:max-retries 2 set dns:fatal-timeout 2 open -u "${TARGET_USER}","${TARGET_PASS}" "${SERVER}" - cd home/${FTP_USER} + cd home/${TARGET_USER} mirror -R --delete --verbose dist/ ./ quit EOF