Repository navigation
fix(release): publish Docker semver tags #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 }} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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 Add a retry or reconciliation step that republishes all tags for the release after a partial push. Prompt for AI agentsIn `.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 }} | ||
There was a problem hiding this comment.
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>, andlatesttags, 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