diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 76afe50..8b4b32c 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -15,11 +15,18 @@ jobs: env: GITEA_TOKEN: ${{ gitea.token }} run: | - echo "=== Test résolution DNS ===" - getent hosts git.kaelstudio.tech || echo "DNS introuvable" + echo "=== 1. Forcer le routage IPv4 vers l'hôte Docker ===" + HOST_IP=$(ip route | awk '/default/ { print $3 }') + echo "IP de l'hôte Docker : $HOST_IP" - echo "=== Initialisation Git & Clone ===" + # Injecter l'IP de l'hôte pour git.kaelstudio.tech dans /etc/hosts + echo "$HOST_IP git.kaelstudio.tech" >> /etc/hosts + + echo "=== 2. Forcer Git en IPv4 et sans vérification SSL ===" git config --global http.sslVerify false + git config --global curl.ipresolve 4 + + echo "=== 3. Initialisation et Clonage ===" git init . git remote add origin "https://${GITEA_TOKEN}@git.kaelstudio.tech/${{ gitea.repository }}.git" || true git fetch --depth=1 origin "${{ gitea.ref_name || 'main' }}"