Skip to content

Commit

Permalink
lvh: allow renovate to update kernel images instead of using main
Browse files Browse the repository at this point in the history
Adapt the regex used in the workflows to work with both use cases.

Signed-off-by: Mahe Tardy <[email protected]>
  • Loading branch information
mtardy committed Sep 14, 2023
1 parent 27f5cbe commit a6ffb79
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 6 deletions.
42 changes: 41 additions & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,40 @@
"executionMode": "branch"
}
},
{
"matchDepNames": [
"quay.io/lvh-images/kind"
],
// LVH uses custom versioning for its images, need to match those kinds of tags:
// - bpf-next-20230914.012459
// - 5.15-20230912.232842
"versioning": "regex:^((?<compatibility>[a-z-]+)|((?<major>\\d+)\\.(?<minor>\\d+)))\\-(?<patch>\\d+)\\.(?<build>\\d+)(@(?<currentDigest>sha256:[a-f0-9]+))?$"
},
{
"groupName": "all lvh-images main",
"groupSlug": "all-lvh-images-main",
"matchPackageNames": [
"quay.io/lvh-images/kind"
],
"matchUpdateTypes": [
"digest",
"patch",
"pin",
"pinDigest"
],
},
// ignore deps section
{
// do not allow any updates for major.minor for LVH, they will be done by maintainers
"enabled": false,
"matchPackageNames": [
"quay.io/lvh-images/kind"
],
"matchUpdateTypes": [
"major",
"minor"
],
},
{
// do not update those packages as they are replaced by the local copy
// see https://github.com/cilium/tetragon/blob/7623babdf54e9a38326420c1b188308f6cf96fff/go.mod#L178-L179
Expand Down Expand Up @@ -351,7 +384,14 @@
"^\\.github/workflows/[^/]+\\.ya?ml$"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+version: *['\"]?(?<currentValue>[^'\"\\s]*)"
// this regex is used to match both:
//
// # renovate: datasource=golang-version depName=go
// go: '1.20.8'
//
// # renovate: datasource=docker depName=quay.io/lvh-images/kind
// - 'bpf-next-20230912.113936'
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)\\s+.+ ['\"]?(?<currentValue>[^'\"\\s]*)"
]
},
{
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/vmtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,16 @@ jobs:
fail-fast: false
matrix:
kernel:
- 'bpf-next-main'
- '5.15-main'
- '5.10-main'
- '5.4-main'
- '4.19-main'
# renovate: datasource=docker depName=quay.io/lvh-images/kind
- 'bpf-next-20230912.113936'
# renovate: datasource=docker depName=quay.io/lvh-images/kind
- '5.15-20230912.113936'
# renovate: datasource=docker depName=quay.io/lvh-images/kind
- '5.10-20230912.113936'
# renovate: datasource=docker depName=quay.io/lvh-images/kind
- '5.4-20230912.113936'
# renovate: datasource=docker depName=quay.io/lvh-images/kind
- '4.19-20230912.113936'
group:
- 0
concurrency:
Expand Down

0 comments on commit a6ffb79

Please sign in to comment.