Skip to content

feat(github-actions): extract Docker version from setup-docker-action#42880

Open
pierluigilenoci wants to merge 1 commit intorenovatebot:mainfrom
pierluigilenoci:feat/docker-setup-action-version
Open

feat(github-actions): extract Docker version from setup-docker-action#42880
pierluigilenoci wants to merge 1 commit intorenovatebot:mainfrom
pierluigilenoci:feat/docker-setup-action-version

Conversation

@pierluigilenoci
Copy link
Copy Markdown

Changes

Add support for detecting and updating the version property in docker/setup-docker-action GitHub Action workflows.

The version input of docker/setup-docker-action refers to the Docker CE engine version, which is released from the moby/moby repository with tags like docker-v29.4.1. The extractVersion regex strips the docker- prefix to match the version format used in the action (e.g., v27.1.0).

Context

AI assistance disclosure

Did you use AI tools to create any part of this pull request?

  • No — I did not use AI for this contribution.
  • Yes — minimal assistance (e.g., IDE autocomplete, small code completions, grammar fixes).
  • Yes — substantive assistance (AI generated non‑trivial portions of code, tests, or documentation).
  • Yes — other (please describe):

Claude Code was used to analyze the codebase patterns and generate the implementation.

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@github-actions github-actions Bot requested a review from viceice April 24, 2026 14:18
@cla-assistant
Copy link
Copy Markdown

cla-assistant Bot commented Apr 24, 2026

CLA assistant check
All committers have signed the CLA.

@jamietanna
Copy link
Copy Markdown
Contributor

Mind a rebase to fix the commit message, as CI's flagged? Also, sign the CLA? Otherwise this looks good!

Comment on lines +1598 to +1614
{
step: {
uses: 'docker/setup-docker-action@v4',
with: {},
},
expected: [
{
skipStage: 'extract',
skipReason: 'unspecified-version',
datasource: 'github-releases',
depName: 'docker/setup-docker-action',
depType: 'uses-with',
packageName: 'moby/moby',
extractVersion: '^docker-(?<version>.+)$',
},
],
},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can be removed, no longer required to have more than one test

@pierluigilenoci pierluigilenoci force-pushed the feat/docker-setup-action-version branch from 1fb8633 to 0ad7e4a Compare April 24, 2026 17:44
@pierluigilenoci
Copy link
Copy Markdown
Author

Removed the redundant test case per @viceice's review and squashed with Closes #42586 in the commit message. CLA signing pending. Thanks for the feedback!

@viceice
Copy link
Copy Markdown
Member

viceice commented Apr 26, 2026

Removed the redundant test case per @viceice's review and squashed with Closes #42586 in the commit message. CLA signing pending. Thanks for the feedback!

remove the closes issue from commit message

Signed-off-by: Pierluigi Lenoci <pierluigilenoci@gmail.com>
@pierluigilenoci pierluigilenoci force-pushed the feat/docker-setup-action-version branch from b9c901a to 500006f Compare April 26, 2026 18:11
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.

Support docker/setup-docker-action version property

3 participants