Skip to content

Commit 79c976b

Browse files
committed
ping watchtower after build
1 parent 4d8a625 commit 79c976b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/docker-build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
registry: ghcr.io
4242
username: ${{ github.actor }}
4343
password: ${{ secrets.GITHUB_TOKEN }}
44-
44+
4545
- name: Log in to Docker Hub
4646
uses: docker/login-action@v3
4747
with:
@@ -72,3 +72,12 @@ jobs:
7272
labels: ${{ steps.meta.outputs.labels }}
7373
cache-from: type=gha
7474
cache-to: type=gha,mode=max
75+
76+
- name: Ping Watchtower
77+
if: env.WATCHTOWER_HTTP_API_URL && env.WATCHTOWER_HTTP_API_TOKEN
78+
env:
79+
WATCHTOWER_HTTP_API_URL: ${{ secrets.WATCHTOWER_HTTP_API_URL }}
80+
WATCHTOWER_HTTP_API_TOKEN: ${{ secrets.WATCHTOWER_HTTP_API_TOKEN }}
81+
run: |
82+
curl --fail -X POST ${{ env.WATCHTOWER_HTTP_API_URL }} \
83+
-H "Authorization: Bearer ${{ env.WATCHTOWER_HTTP_API_TOKEN }}"

0 commit comments

Comments
 (0)