diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index f8953ea..28ea462 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -22,10 +22,9 @@ jobs: 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...' && - # 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' && + echo '=> [2/4] Synchronisation Git avec la clé dédiée alapatch...' && + # On force l'usage de notre nouvelle clé dédiée id_alapatch + git config core.sshCommand 'ssh -o StrictHostKeyChecking=no -o BatchMode=yes -i /root/.ssh/id_alapatch' && git fetch --all && git reset --hard origin/main && git clean -fd &&