diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index c9855ef..e7bacff 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -9,10 +9,18 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - name: Debug DNS + - name: Force DNS Fix + shell: bash run: | - cat /etc/hosts - ping -c 1 gitea.tecamino.local || echo "DNS still broken" + # Ermittelt die IP des Docker-Gateways (die Synology) + GATEWAY_IP=$(ip route show | grep default | awk '{print $3}') + echo "Gefundene Gateway-IP: $GATEWAY_IP" + # Schreibt den Eintrag hart in die /etc/hosts des aktuellen Jobs + echo "$GATEWAY_IP gitea.tecamino.local" | tee -a /etc/hosts + + - name: Verify Fix + run: cat /etc/hosts + - name: Check out repo code uses: actions/checkout@v4 with: