Repository navigation
Add a workflow to update to a new Ruby release on dispatch - #532
Merged
Merged
Conversation
Lets ruby/ruby's release workflow (publish.yml) trigger the same
"update.sh" + build/test + push that the Jenkins update.sh job does,
right after a release instead of up to 6 hours later:
POST /repos/docker-library/ruby/actions/workflows/update.yml/dispatches
{"ref": "master", "inputs": {"version": "4.0.9"}}
The "update" job waits for the version to appear in www.ruby-lang.org's
releases.yml (which "versions.sh" reads), runs "./update.sh" for the
affected versions.json keys and commits with the same message format as
the Jenkins job. The "test" job builds and tests only the changed
variants with the same matrix generator as ci.yml. The "push" job then
fast-forwards master with the workflow's own GITHUB_TOKEN.
Ruby usually releases several versions at once, so each version runs as
its own workflow run (concurrency group per version). If master moved in
the meantime (another version's run, or the Jenkins job), the push job
exits successfully when master already has the version, and otherwise
replays the tested commit on top of master, verifying that the result is
byte-identical to what was tested for the affected versions and that
"./update.sh" is a no-op on it. Anything else fails without pushing.
k0kubun
added a commit
to ruby/ruby
that referenced
this pull request
Nov 4, 2026
docker-library/ruby now has a workflow_dispatch-triggered workflow (docker-library/ruby#532) that runs ./update.sh for a released Ruby version, builds and tests the result, and pushes it to its master branch. Dispatch it from publish.yml right after a release, so the official Docker images stop waiting for the 6-hourly Jenkins job.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ref: docker-library/official-images#22616
This PR adds a workflow that allows ruby/ruby's
publish.ymlworkflow to push anupdate.shoutput to master. Thepublish.ymlworkflow will use matzbot's API token to trigger this workflow usingworkflow_dispatch.