Skip to content

Commit

Permalink
Add watchtower webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
major committed Apr 3, 2024
1 parent 5dd6f76 commit 5a1fb36
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,11 @@ jobs:
TAGS: ${{ steps.meta.outputs.tags }}
DIGEST: ${{ steps.build-and-push.outputs.digest }}
run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST}

- name: Update the blog container
if: github.event_name != 'pull_request'
run: |
curl -H "Authorization: Bearer ${WATCHTOWER_TOKEN}" \
https://watchtower.thetanerd.com/v1/update
env:
WATCHTOWER_TOKEN: ${{ secrets.WATCHTOWER_TOKEN }}

0 comments on commit 5a1fb36

Please sign in to comment.