From 0a93e0fffec23259d3c46ae9f1927f66624d2dcc Mon Sep 17 00:00:00 2001 From: cvancau Date: Sun, 9 Aug 2026 15:34:54 +0200 Subject: [PATCH] Actualiser .gitea/workflows/deploy.yml --- .gitea/workflows/deploy.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 9efc9ec..286b2f0 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -16,16 +16,17 @@ jobs: run: | echo "Démarrage de la connexion et réplication Git native..." - ssh -o StrictHostKeyChecking=no -o BatchMode=yes -i /root/.ssh/id_home root@home.mesdonneesadministratives.fr " + # La commande principale utilise id_home car la clé est sur le RUNNER + ssh -o StrictHostKeyChecking=no -o BatchMode=yes -i /root/.ssh/id_ed25519 root@home.mesdonneesadministratives.fr " cd /opt/alapatch && echo '=> [1/4] Configuration du Remote en SSH natif...' && git remote set-url origin git@git.mesdonneesadministratives.fr:cvancau/alapatch.git || git remote add origin git@git.mesdonneesadministratives.fr:cvancau/alapatch.git && - echo '=> [2/4] Synchronisation Git native (avec bypass de l-empreinte)...' && - # On indique explicitement à Git d'ignorer la vérification de l'empreinte pour cette commande - GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=no -o BatchMode=yes -i /root/.ssh/id_home' git fetch --all && - GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=no -o BatchMode=yes -i /root/.ssh/id_home' git reset --hard origin/main && + echo '=> [2/4] Synchronisation Git native...' && + # On retire le -i /root/.ssh/id_home car le serveur 'home' utilise sa clé par défaut + GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=no -o BatchMode=yes' git fetch --all && + GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=no -o BatchMode=yes' git reset --hard origin/main && git clean -fd && echo '=> [3/4] Build de l-image Docker (Node 22 / Vite)...' &&