Should do the trick
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user