From 1a2fbf05807a63f54f6a36bc102131553f21f5cd Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Thu, 16 Jul 2026 18:42:46 +0200 Subject: [PATCH] Should do the trick --- .github/workflows/deploy.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 4c1f978..a8bceee 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -35,7 +35,13 @@ jobs: needs: build-image runs-on: ubuntu-latest steps: - - name: Notify Watchtower - # run: "curl -H \"Authorization: Bearer ${{ secrets.WATCHTOWER_TOKEN }}\" https://watchtower.smartwave.matthiasg.dev/v1/metrics && curl -i -X POST -H \"Authorization: Bearer ${{ secrets.WATCHTOWER_TOKEN }}\" https://watchtower.smartwave.matthiasg.dev/v1/update" - run: "curl -i -X POST -H \"Authorization: Bearer mySecretSmartwave\" https://watchtower.smartwave.matthiasg.dev/v1/update" \ No newline at end of file + run: | + # 1. Dynamically grab the Docker gateway IP of the host machine + HOST_IP=$(ip route | awk '/default/ {print $3}') + echo "Detected Docker Host Gateway IP: $HOST_IP" + + # 2. Trigger Watchtower directly over local HTTP port 8080 + curl -i -X POST \ + -H "Authorization: Bearer ${{ secrets.WATCHTOWER_TOKEN }}" \ + "http://$HOST_IP:8007/v1/update" \ No newline at end of file