From 38dc835838d807bd0bfb63d5025ee6021da4d568 Mon Sep 17 00:00:00 2001 From: Maximilian Irro Date: Sun, 15 Sep 2024 21:23:23 +0200 Subject: [PATCH] Automatically generate a GitHub release when publishing a Docker image --- .github/workflows/docker-publish.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 4f9d21d..0ab6e74 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -108,3 +108,19 @@ jobs: # This step uses the identity token to provision an ephemeral certificate # against the sigstore community Fulcio instance. run: echo "${TAGS}" | xargs -I {} cosign sign --yes {}@${DIGEST} + + - uses: softprops/action-gh-release@v2.0.8 + with: + tag_name: ${{ steps.extract-version.outputs.PIHOLE_VERSION }} + body: | + #### This is an update for the `one-container` configuration + + - Updating Pi-Hole base image to `${{ steps.extract-version.outputs.PIHOLE_VERSION }}` ([link](https://github.com/pi-hole/docker-pi-hole/releases/tag/${{ steps.extract-version.outputs.PIHOLE_VERSION }})) + + #### Update instructions + + ```shell + docker-compose pull + docker-compose up -d + ``` + make_latest: true