Skip to content

Prevent alias tag overwrite on concurrent Docker publishes#20

Merged
dash14 merged 1 commit intomainfrom
ci/docker-publish-concurrency
Mar 11, 2026
Merged

Prevent alias tag overwrite on concurrent Docker publishes#20
dash14 merged 1 commit intomainfrom
ci/docker-publish-concurrency

Conversation

@dash14
Copy link
Copy Markdown
Owner

@dash14 dash14 commented Mar 11, 2026

Summary

When multiple version tags (e.g., v1.0.0 and v1.1.0) are pushed simultaneously, parallel workflow runs could overwrite the major and major.minor alias tags with an older version.

  • Add concurrency group to serialize Docker publish workflow runs
  • Add Git tag-based semver comparison to skip alias tag generation when the current version is not the latest within its major or major.minor range
  • version (e.g., 1.0.0) and sha-xxx tags are always pushed as they are unique

How it works

Tag v1.0.0 build v1.1.0 build
1.0.0 / 1.1.0 push push
sha-xxx push push
1.0 / 1.1 push push
1 skip (v1.1.0 is latest) push

@dash14 dash14 merged commit 1f30bb3 into main Mar 11, 2026
6 checks passed
@dash14 dash14 deleted the ci/docker-publish-concurrency branch March 11, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant