Skip to content

Conversation

@vvoland
Copy link
Contributor

@vvoland vvoland commented Oct 14, 2025

When building the final install.sh script - fill the latest versions based on Github releases.

With this we no longer need to manually the rootless versions via PRs like this: #531

@vvoland vvoland self-assigned this Oct 14, 2025
@vvoland vvoland force-pushed the rootless-auto-versions branch 8 times, most recently from 773fa0a to 59cd1e3 Compare October 15, 2025 09:53
@vvoland vvoland marked this pull request as ready for review October 15, 2025 09:53
Copy link
Contributor

@austinvazquez austinvazquez left a comment

Choose a reason for hiding this comment

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

LGTM, just a quick comment to double check the two new values are not currently used in install.sh is intentional.

Comment on lines +34 to +35
LOAD_SCRIPT_STABLE_LATEST='$(STABLE_LATEST)' \
LOAD_SCRIPT_TEST_LATEST='$(TEST_LATEST)' \
Copy link
Contributor

Choose a reason for hiding this comment

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

I assume these are here for completeness and not actually referenced in install.sh.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah they're not used right now

@vvoland vvoland force-pushed the rootless-auto-versions branch from 59cd1e3 to e60e2b2 Compare November 4, 2025 11:46
@vvoland vvoland requested review from Copilot and thaJeztah November 4, 2025 11:46
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR automates version management for Docker installation scripts by introducing a script that dynamically fetches the latest Docker versions from the moby/moby GitHub releases API instead of hardcoding them.

  • Adds scripts/get-version.sh to fetch latest stable and test versions from GitHub releases
  • Updates Makefile to call the version script and inject version variables during build
  • Modifies rootless-install.sh to use dynamically populated version variables instead of hardcoded values
  • Updates CI workflows to provide GitHub authentication token for API calls

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
scripts/get-version.sh New script that queries GitHub API to fetch latest Docker versions for stable and test channels
Makefile Adds version retrieval logic, error checking for empty versions, and passes version variables to envsubst
rootless-install.sh Replaces hardcoded version strings with environment variables populated at build time
.github/workflows/diff.yml Adds GH_TOKEN environment variable for GitHub CLI authentication
.github/workflows/ci.yml Adds GH_TOKEN environment variable for GitHub CLI authentication and updates rootless install test to use built artifact

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

When building the final install.sh script - fill the latest versions
based on Github releases.

Signed-off-by: Paweł Gronowski <[email protected]>
@vvoland vvoland force-pushed the rootless-auto-versions branch from e60e2b2 to 955c0d7 Compare November 10, 2025 12:05
@vvoland vvoland merged commit 7d96bd3 into docker:master Nov 10, 2025
9 checks passed
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.

2 participants