This commit is contained in:
@@ -22,10 +22,9 @@ jobs:
|
|||||||
echo '=> [1/4] Configuration du Remote en SSH natif...' &&
|
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 &&
|
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...' &&
|
echo '=> [2/4] Synchronisation Git avec la clé dédiée alapatch...' &&
|
||||||
# On laisse Git chercher la clé tout seul (comme pour votre autre dépôt)
|
# On force l'usage de notre nouvelle clé dédiée id_alapatch
|
||||||
# On lui demande juste d'ignorer la vérification de l'hôte
|
git config core.sshCommand 'ssh -o StrictHostKeyChecking=no -o BatchMode=yes -i /root/.ssh/id_alapatch' &&
|
||||||
git config core.sshCommand 'ssh -o StrictHostKeyChecking=no -o BatchMode=yes' &&
|
|
||||||
git fetch --all &&
|
git fetch --all &&
|
||||||
git reset --hard origin/main &&
|
git reset --hard origin/main &&
|
||||||
git clean -fd &&
|
git clean -fd &&
|
||||||
|
|||||||
Reference in New Issue
Block a user