This commit is contained in:
@@ -20,12 +20,12 @@ jobs:
|
||||
cd /opt/alapatch &&
|
||||
|
||||
echo '=> [1/4] Configuration du Remote en SSH natif...' &&
|
||||
# Configuration propre utilisant l'utilisateur générique 'git' de Gitea
|
||||
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...' &&
|
||||
git fetch --all &&
|
||||
git reset --hard origin/main &&
|
||||
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 &&
|
||||
git clean -fd &&
|
||||
|
||||
echo '=> [3/4] Build de l-image Docker (Node 22 / Vite)...' &&
|
||||
|
||||
Reference in New Issue
Block a user