ml
Some checks failed
Build & Deploy to Hostverge FTP (Gitea Actions) / build-and-deploy (push) Failing after 3s
Some checks failed
Build & Deploy to Hostverge FTP (Gitea Actions) / build-and-deploy (push) Failing after 3s
This commit is contained in:
@@ -16,13 +16,15 @@ jobs:
|
||||
GITEA_TOKEN: ${{ gitea.token }}
|
||||
run: |
|
||||
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"
|
||||
# Récupération de l'IP passerelle via /proc/net/route (sans dépendance externe)
|
||||
HOST_IP=$(awk '$2 == "00000000" { printf("%d.%d.%d.%d\n", "0x" substr($3,7,2), "0x" substr($3,5,2), "0x" substr($3,3,2), "0x" substr($3,1,2)) }' /proc/net/route 2>/dev/null || echo "172.17.0.1")
|
||||
[ -z "$HOST_IP" ] && HOST_IP="172.17.0.1"
|
||||
echo "IP de l'hôte Docker détectée : $HOST_IP"
|
||||
|
||||
# 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 ==="
|
||||
echo "=== 2. Configuration Git ==="
|
||||
git config --global http.sslVerify false
|
||||
git config --global curl.ipresolve 4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user