Skip to content

Commit

Permalink
ci: notify watchtower on image update
Browse files Browse the repository at this point in the history
  • Loading branch information
mortebrume committed Sep 2, 2024
1 parent e9c6bd5 commit f7c978d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ jobs:
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}
subject-name: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
push-to-registry: true

- name: Notify Watchtower
env:
WATCHTOWER_TOKEN: ${{ secrets.WATCHTOWER_TOKEN }}
run: |
curl -H "Authorization: Bearer $WATCHTOWER_TOKEN" https://watchtower.mortebrume.eu/v1/update

0 comments on commit f7c978d

Please sign in to comment.