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

lvh: allow renovate to update kernel images instead of using main #1470

Merged
merged 2 commits into from
Sep 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 45 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 @@ -347,14 +380,23 @@
// examples shown here: https://docs.renovatebot.com/modules/manager/regex/#advanced-capture
"regexManagers": [
{
"customType": "regex",
"fileMatch": [
"^\\.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]*)"
]
},
{
"customType": "regex",
"fileMatch": [
"^Makefile\\.cli$"
],
Expand All @@ -363,6 +405,7 @@
]
},
{
"customType": "regex",
"fileMatch": [
"^\\.github/renovate\\.json5$"
],
Expand All @@ -371,6 +414,7 @@
]
},
{
"customType": "regex",
"fileMatch": [
"^Makefile$"
],
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/kernel-images
- 'bpf-next-20230912.113936'
# renovate: datasource=docker depName=quay.io/lvh-images/kernel-images
- '5.15-20230912.113936'
# renovate: datasource=docker depName=quay.io/lvh-images/kernel-images
- '5.10-20230912.113936'
# renovate: datasource=docker depName=quay.io/lvh-images/kernel-images
- '5.4-20230912.113936'
# renovate: datasource=docker depName=quay.io/lvh-images/kernel-images
- '4.19-20230912.113936'
group:
- 0
concurrency:
Expand Down