Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Comment on lines +56 to +57

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Older releases replace newer aliases

When publishing runs for releases sharing a major or minor version overlap, or an older run is rerun after a newer release, the older build can finish last and push its image to shared v<major>, v<major>.<minor>, and latest tags, replacing the newer image; consumers pulling those aliases receive an outdated release.

Only let the newest release publish the shared aliases, including latest.

Prompt for AI agents
In `.github/workflows/release-please.yaml` at lines 56-57:

**Older releases replace newer aliases**

When publishing runs for releases sharing a major or minor version overlap, or an older run is rerun after a newer release, the older build can finish last and push its image to shared `v<major>`, `v<major>.<minor>`, and `latest` tags, replacing the newer image; consumers pulling those aliases receive an outdated release.

Only let the newest release publish the shared aliases, including `latest`.


- uses: docker/setup-qemu-action@99012661954931238ded8c8b007157a8430204e1 # v4

- uses: docker/setup-buildx-action@v3
Expand All @@ -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 }}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Interrupted push leaves tags inconsistent

When the registry push fails after accepting only some of the requested tags, buildx can push some tags before a registry or network error interrupts the remaining pushes, leaving the full version, aliases, and latest pointing at different images; the failed run does not roll back or retry the tags already pushed.

Add a retry or reconciliation step that republishes all tags for the release after a partial push.

Prompt for AI agents
In `.github/workflows/release-please.yaml` at line 77:

**Interrupted push leaves tags inconsistent**

When the registry push fails after accepting only some of the requested tags, buildx can push some tags before a registry or network error interrupts the remaining pushes, leaving the full version, aliases, and `latest` pointing at different images; the failed run does not roll back or retry the tags already pushed.

Add a retry or reconciliation step that republishes all tags for the release after a partial push.

labels: |
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down