From 5a1fb36ab2f52130f13da9519b7ebe5ea251d330 Mon Sep 17 00:00:00 2001 From: Major Hayden Date: Wed, 3 Apr 2024 16:23:33 -0500 Subject: [PATCH] Add watchtower webhook --- .github/workflows/container.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 0cbf23ac3..39e12c3e7 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -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 }} \ No newline at end of file