From 75dda720155a9073bca2fe27b6919734f45b3aae Mon Sep 17 00:00:00 2001 From: Serhiy Bobrov Date: Thu, 26 Nov 2026 15:41:29 +0200 Subject: [PATCH] fix(release): publish Docker semver tags Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/release-please.yaml | 14 +++++++++++--- README.md | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml index 75a09154..4ef0be66 100644 --- a/.github/workflows/release-please.yaml +++ b/.github/workflows/release-please.yaml @@ -46,6 +46,16 @@ jobs: id: image run: echo "name=ghcr.io/${GITHUB_REPOSITORY,,}" >> "$GITHUB_OUTPUT" + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v6 + with: + images: ${{ steps.image.outputs.name }} + tags: | + type=semver,pattern={{raw}},value=${{ needs.release_please.outputs.tag_name }} + type=semver,pattern=v{{major}},value=${{ needs.release_please.outputs.tag_name }} + type=semver,pattern=v{{major}}.{{minor}},value=${{ needs.release_please.outputs.tag_name }} + - uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4 - uses: docker/setup-buildx-action@v3 @@ -64,8 +74,6 @@ jobs: platforms: linux/amd64,linux/arm64 build-args: | VERSION=${{ needs.release_please.outputs.tag_name }} - tags: | - ${{ steps.image.outputs.name }}:${{ needs.release_please.outputs.tag_name }} - ${{ steps.image.outputs.name }}:latest + tags: ${{ steps.meta.outputs.tags }} labels: | org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }} diff --git a/README.md b/README.md index f6162c3d..445790f3 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ If you want to set CORS headers, you can use the `-header name=value` flag while On platforms that use [systemd](https://systemd.io), [webhook][w] supports the _socket activation_ mechanism. If [webhook][w] detects that it has been launched from a systemd-managed socket it will automatically use that instead of opening its own listening port. See [the systemd page](docs/Systemd-Activation.md) for full details. ## Interested in running webhook inside of a Docker container? -Release images are available for Linux amd64 and arm64 at `ghcr.io/baragoon/webhook`, tagged with the release tag and `latest`. For example: +Release images are available for Linux amd64 and arm64 at `ghcr.io/baragoon/webhook`, tagged with the full release version (`vX.Y.Z`), its major and minor aliases (`vX` and `vX.Y`), and `latest`. For example: ```bash docker run --rm -p 9000:9000 \