Should do the trick
Build, push image, and notify Watchtower / build-image (push) Successful in 39s
Build, push image, and notify Watchtower / notify (push) Failing after 4s

This commit is contained in:
2026-07-16 18:42:46 +02:00
parent 7474a27311
commit 1a2fbf0580
+9 -3
View File
@@ -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"
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"