Skip to content

release/docker: Apply version to Engine and CLI too - #521

Merged
vvoland merged 2 commits into
docker:mainfrom
vvoland:docker-version
Sep 21, 2026
Merged

vvoland merged 2 commits into
docker:mainfrom
vvoland:docker-version

Conversation

@vvoland

@vvoland vvoland commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Pass DOCKER_VERSION to the Engine and CLI Bake targets. The release workflow applied the requested version only to the combined static archives.

Added an optional version argument so callers can set a release
version independently of source tags while retaining the source commit
identity. Explicit versions use the existing binary and package
version formatting without being replaced by a pseudo version for
untagged commits.

Source-derived defaults remain unchanged, and NIGHTLY_BUILD=1 still
forces a pseudo version. Added tests for overrides, prereleases,
prefixed tags, untagged commits, and nightlies.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
Pass DOCKER_VERSION to the Engine and CLI Bake targets. The release
workflow applied the requested version only to the combined static
archives.

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟢 Approval recommended

Version propagation is complete and preserves existing source-derived and nightly behavior.

Review effort: Balanced
Findings: None

What changed in this PR

Applies the requested Docker release version consistently to Engine, CLI, and combined package builds.

Changes:

  • Passes DOCKER_VERSION through release workflows, Bake targets, and Docker build stages.
  • Adds explicit-version support to gen-ver.
  • Preserves source-derived and nightly version behavior when appropriate.
File Description
.github/​workflows/​release-docker.yml Passes the release version to Engine and CLI builds.
docker-bake.hcl Propagates and documents DOCKER_VERSION.
hack/​scripts/​gen-ver.sh Supports an optional explicit version.
pkg/​docker-engine/​Dockerfile Exposes the version to Engine build stages.
pkg/​docker-engine/​scripts/​pkg-deb-build.sh Applies the version to DEB builds.
pkg/​docker-engine/​scripts/​pkg-rpm-build.sh Applies the version to RPM builds.
pkg/​docker-engine/​scripts/​pkg-static-build.sh Applies the version to static builds.
pkg/​docker-cli/​Dockerfile Exposes the version to CLI build stages.
pkg/​docker-cli/​scripts/​pkg-deb-build.sh Applies the version to DEB builds.
pkg/​docker-cli/​scripts/​pkg-rpm-build.sh Applies the version to RPM builds.
pkg/​docker-cli/​scripts/​pkg-static-build.sh Applies the version to static builds.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vvoland
vvoland marked this pull request as ready for review September 21, 2026 17:11
@vvoland
vvoland merged commit 85c96cc into docker:main Sep 21, 2026
1492 of 1493 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants