maj yml
Some checks failed
Build & Deploy to Hostverge FTP (Gitea Actions) / build-and-deploy (push) Failing after 5s
Some checks failed
Build & Deploy to Hostverge FTP (Gitea Actions) / build-and-deploy (push) Failing after 5s
This commit is contained in:
@@ -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' }}"
|
||||
|
||||
Reference in New Issue
Block a user