This commit is contained in:
@@ -16,17 +16,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "Démarrage de la connexion et réplication Git native..."
|
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 "
|
ssh -o StrictHostKeyChecking=no -o BatchMode=yes -i /root/.ssh/id_home root@home.mesdonneesadministratives.fr "
|
||||||
cd /opt/alapatch &&
|
cd /opt/alapatch &&
|
||||||
|
|
||||||
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 avec la clé git@home du serveur...' &&
|
echo '=> [2/4] Synchronisation Git native...' &&
|
||||||
# Correction cruciale : Appel explicite de la clé personnalisée /root/.ssh/git@home
|
# On laisse Git chercher la clé tout seul (comme pour votre autre dépôt)
|
||||||
GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=no -o BatchMode=yes -i /root/.ssh/git@home' git fetch --all &&
|
# On lui demande juste d'ignorer la vérification de l'hôte
|
||||||
GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=no -o BatchMode=yes -i /root/.ssh/git@home' git reset --hard origin/main &&
|
git config core.sshCommand 'ssh -o StrictHostKeyChecking=no -o BatchMode=yes' &&
|
||||||
|
git fetch --all &&
|
||||||
|
git reset --hard origin/main &&
|
||||||
git clean -fd &&
|
git clean -fd &&
|
||||||
|
|
||||||
echo '=> [3/4] Build de l-image Docker (Node 22 / Vite)...' &&
|
echo '=> [3/4] Build de l-image Docker (Node 22 / Vite)...' &&
|
||||||
|
|||||||
Reference in New Issue
Block a user