Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: configure renovate for KIND_VERSION #1233

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

pmalek
Copy link
Member

@pmalek pmalek commented Jan 22, 2025

What this PR does / why we need it:

Configure renovate for KIND_VERSION in GitHub workflow files.

Tested locally:

docker run --rm -it -v $PWD/renovate.json:/usr/src/app/renovate.json -v /tmp:/tmp -v $(pwd):/tmp/workdir -w /tmp/workdir -e LOG_LEVEL=debug -e GITHUB_COM_TOKEN=${GITHUB_TOKEN} renovate/renovate --platform local --base-dir /tmp/ --enabled-managers custom.regex

...
           {
             "deps": [
               {
                 "depName": "kubernetes-sigs/kind",
                 "currentValue": "0.23.0",
                 "datasource": "github-releases",
                 "replaceString": "# renovate: datasource=github-releases depName=kubernetes-sigs/kind\n  KIND_VERSION: \"0.23.0\"\n",
                 "updates": [
                   {
                     "bucket": "minor",
                     "newVersion": "v0.26.0",
                     "newValue": "0.26.0",
                     "releaseTimestamp": "2024-12-16T22:02:37.000Z",
                     "newVersionAgeInDays": 37,
                     "newMajor": 0,
                     "newMinor": 26,
                     "newPatch": 0,
                     "updateType": "minor",
                     "branchName": "renovate/kubernetes-sigs-kind-0.x"
                   }
                 ],
                 "packageName": "kubernetes-sigs/kind",
                 "versioning": "semver-coerced",
                 "warnings": [],
                 "sourceUrl": "https://github.com/kubernetes-sigs/kind",
                 "registryUrl": "https://github.com",
                 "currentVersion": "v0.23.0",
                 "currentVersionTimestamp": "2024-05-14T02:02:39.000Z",
                 "currentVersionAgeInDays": 254,
                 "isSingleVersion": true,
                 "fixedVersion": "0.23.0"
               }
             ],
             "matchStrings": [
               "# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\n.+:\\s*\"?(?<currentValue>[0-9]+\\.[0-9.]+)\"?\\n"
             ],
             "packageFile": ".github/workflows/release-pr.yaml"
           }

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • fixes #

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.]

  • PR is based off the current tip of the main branch.
  • Changes are documented under the "Unreleased" header in CHANGELOG.md
  • New or modified sections of values.yaml are documented in the README.md
  • Commits follow the Kong commit message guidelines

@pmalek pmalek added the area/ci label Jan 22, 2025
@pmalek pmalek self-assigned this Jan 22, 2025
@pmalek pmalek force-pushed the renovate-for-kind-version branch from 885b5d1 to 57be51d Compare January 23, 2025 09:07
@pmalek pmalek marked this pull request as ready for review January 23, 2025 09:07
@pmalek pmalek requested a review from a team as a code owner January 23, 2025 09:07
@pmalek pmalek enabled auto-merge (squash) January 23, 2025 09:07
@pmalek pmalek merged commit 2b30842 into main Jan 23, 2025
34 checks passed
@pmalek pmalek deleted the renovate-for-kind-version branch January 23, 2025 09:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants