Skip to content

How do I handle docker tags with SHA1 hashes at the end? #32611

Closed Answered by rcdailey
rcdailey asked this question in Request Help
Discussion options

You must be logged in to vote

After a lot of struggle, I managed to find out the answer on my own. The key is to make the versionCompatibility regex more comprehensive. Many tags for these particular docker images do not follow semver structure (e.g. large numbers with no dots in them), so those were being treated as upgrades instead, which was wrong.

The below package rule works well for my use case.

    {
      // hotio tags use a format like "release-4.0.4.1491"
      // See: https://github.com/renovatebot/renovate/issues/7297
      //
      // Examples:
      // - main-v1.52.8
      // - release-4.3.3
      // - release-1.40.2.8395-c67dce28e
      "matchDatasources": ["docker"],
      "matchPackageNames": [
        "

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@rcdailey
Comment options

@rcdailey
Comment options

@rcdailey
Comment options

@rarkins
Comment options

@rcdailey
Comment options

Comment options

You must be logged in to vote
1 reply
@rcdailey
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by rcdailey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:reproduction A minimal reproduction is necessary to proceed auto:not-minimal-reproduction Reproduction is not minimal
3 participants