From 0e37e535d4c214bab8f2674f3428011ad62abf6f Mon Sep 17 00:00:00 2001 From: cvancau Date: Sun, 9 Aug 2026 15:48:38 +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 d9e61cf..f8953ea 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -16,17 +16,18 @@ jobs: run: | echo "Démarrage de la connexion et réplication Git native..." - # Le Runner utilise sa clé id_home pour piloter le serveur ssh -o StrictHostKeyChecking=no -o BatchMode=yes -i /root/.ssh/id_home 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 la clé git@home du serveur...' && - # Correction cruciale : Appel explicite de la clé personnalisée /root/.ssh/git@home - GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=no -o BatchMode=yes -i /root/.ssh/git@home' git fetch --all && - GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=no -o BatchMode=yes -i /root/.ssh/git@home' git reset --hard origin/main && + echo '=> [2/4] Synchronisation Git native...' && + # On laisse Git chercher la clé tout seul (comme pour votre autre dépôt) + # On lui demande juste d'ignorer la vérification de l'hôte + git config core.sshCommand 'ssh -o StrictHostKeyChecking=no -o BatchMode=yes' && + git fetch --all && + git reset --hard origin/main && git clean -fd && echo '=> [3/4] Build de l-image Docker (Node 22 / Vite)...' &&