Skip to content

Commit

Permalink
chore: rekres to bring renovate under kres
Browse files Browse the repository at this point in the history
Kresify renovate config.

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Dec 18, 2024
1 parent a4c4215 commit 611ca38
Show file tree
Hide file tree
Showing 5 changed files with 99 additions and 61 deletions.
91 changes: 37 additions & 54 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,70 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": "THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.",
"prHeader": "Update Request | Renovate Bot",
"extends": [
":dependencyDashboard",
":gitSignOff",
":semanticCommitScopeDisabled",
"schedule:earlyMondays"
],
"prHeader": "Update Request | Renovate Bot",
"regexManagers": [
"customManagers": [
{
"customType": "regex",
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}",
"fileMatch": [
"Pkgfile"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?)(?:\\s+extractVersion=(?<extractVersion>.+?))?(?:\\s+versioning=(?<versioning>.+?))?\\s+depName=(?<depName>.+?)?\\s(?:\\s+.*_(?:version|VERSION):\\s+(?<currentValue>.*))?(?:\\s.*_(?:ref|REF):\\s+(?<currentDigest>.*))?"
],
"versioningTemplate": "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
]
},
{
"customType": "regex",
"datasourceTemplate": "github-tags",
"depNameTemplate": "siderolabs/bldr",
"versioningTemplate": "semver",
"fileMatch": [
"Pkgfile",
"Makefile"
],
"matchStrings": [
"ghcr.io\\/siderolabs\\/bldr:(?<currentValue>v.*)"
],
"depNameTemplate": "siderolabs/bldr",
"datasourceTemplate": "github-tags",
"versioningTemplate": "semver"
]
}
],
"packageRules": [
{
"groupName": "dependencies",
"matchUpdateTypes": [
"major",
"minor",
"patch",
"pin",
"digest"
]
},
{
"allowedVersions": "<= 6.12",
"matchPackageNames": [
"git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"allowedVersions": "<= 6.12"
]
},
{
"versioning": "regex:^(?<major>\\d+)_(?<minor>\\d+)_?(?<patch>\\d+)?$",
"matchPackageNames": [
"ipmitool/ipmitool",
"git://sourceware.org/git/lvm2.git"
],
"versioning": "regex:^(?<major>\\d+)_(?<minor>\\d+)_?(?<patch>\\d+)?$"
]
},
{
"versioning": "regex:^(?<major>\\d{4})(?<minor>\\d{2})(?<patch>\\d{2})\\.?(?<build>\\d+)?$",
"matchPackageNames": [
"git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git"
],
"versioning": "regex:^(?<major>\\d{4})(?<minor>\\d{2})(?<patch>\\d{2})\\.?(?<build>\\d+)?$"
]
},
{
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?$",
"matchPackageNames": [
"git://git.kernel.org/pub/scm/boot/syslinux/syslinux.git",
"git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git",
Expand All @@ -63,60 +77,29 @@
"SELinuxProject/selinux",
"git://git.liburcu.org/userspace-rcu.git",
"git://git.kernel.org/pub/scm/libs/libcap/libcap.git"
],
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?$"
]
},
{
"versioning": "regex:^(?<major>\\d+)\\.?(?<minor>\\d+)?\\.?(?<patch>\\d+)?$",
"matchPackageNames": [
"git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git",
"benhoyt/inih",
"systemd/systemd"
],
"versioning": "regex:^(?<major>\\d+)\\.?(?<minor>\\d+)?\\.?(?<patch>\\d+)?$"
]
},
{
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?\\.?(?<build>\\d+)?$",
"matchPackageNames": [
"git://repo.or.cz/socat.git",
"json-c/json-c"
],
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>\\d+)?\\.?(?<build>\\d+)?$"
]
},
{
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>[0-9]{1}[0-8]{0,1})?$",
"matchPackageNames": [
"openzfs/zfs"
],
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.?(?<patch>[0-9]{1}[0-8]{0,1})?$"
},
{
"matchPackagePatterns": [
"*"
],
"matchDatasources": [
"docker"
],
"groupName": "container images"
},
{
"matchPackagePatterns": [
"*"
],
"matchDatasources": [
"go",
"golang-version"
],
"groupName": "go packages"
},
{
"matchPackagePatterns": [
"*"
],
"matchDatasources": [
"git-refs",
"git-tags",
"github-tags",
"github-releases"
],
"groupName": "releases"
]
}
]
],
"separateMajorMinor": false
}
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-11-26T10:08:56Z by kres 232fe63.
# Generated on 2024-12-18T08:06:55Z by kres b9507d6.

name: default
concurrency:
Expand Down Expand Up @@ -33,7 +33,7 @@ jobs:
labels: ${{ steps.retrieve-pr-labels.outputs.result }}
services:
buildkitd:
image: moby/buildkit:v0.17.2
image: moby/buildkit:v0.18.1
options: --privileged
ports:
- 1234:1234
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
- default
services:
buildkitd:
image: moby/buildkit:v0.17.2
image: moby/buildkit:v0.18.1
options: --privileged
ports:
- 1234:1234
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/weekly.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-11-26T10:08:56Z by kres 232fe63.
# Generated on 2024-12-18T08:06:55Z by kres b9507d6.

name: weekly
concurrency:
Expand All @@ -16,7 +16,7 @@ jobs:
- pkgs
services:
buildkitd:
image: moby/buildkit:v0.17.2
image: moby/buildkit:v0.18.1
options: --privileged
ports:
- 1234:1234
Expand Down
55 changes: 55 additions & 0 deletions .kres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,58 @@ spec:
$(MAKE) docker-kernel-prepare PLATFORM=$$platform BUILDKIT_MULTI_PLATFORM=0 TARGET_ARGS="--tag=$(REGISTRY)/$(USERNAME)/kernel:$(TAG)-$$arch --load"; \
docker run --rm -it --entrypoint=/toolchain/bin/bash -e PATH=/toolchain/bin:/bin -w /src -v $$PWD/kernel/build/config-$$arch:/host/.hostconfig $(REGISTRY)/$(USERNAME)/kernel:$(TAG)-$$arch -c 'cp /host/.hostconfig .config && make $* && cp .config /host/.hostconfig'; \
done
---
kind: common.Renovate
spec:
customManagers:
- customType: regex
fileMatch:
- Pkgfile
matchStrings:
- '# renovate: datasource=(?<datasource>.*?)(?:\s+extractVersion=(?<extractVersion>.+?))?(?:\s+versioning=(?<versioning>.+?))?\s+depName=(?<depName>.+?)?\s(?:\s+.*_(?:version|VERSION):\s+(?<currentValue>.*))?(?:\s.*_(?:ref|REF):\s+(?<currentDigest>.*))?'
versioningTemplate: "{{#if versioning}}{{versioning}}{{else}}semver{{/if}}"
- customType: regex
fileMatch:
- Pkgfile
- Makefile
matchStrings:
- ghcr.io\/siderolabs\/bldr:(?<currentValue>v.*)
depNameTemplate: siderolabs/bldr
datasourceTemplate: github-tags
versioningTemplate: semver
packageRules:
- matchPackageNames:
- git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
allowedVersions: "<= 6.12"
- matchPackageNames:
- ipmitool/ipmitool
- git://sourceware.org/git/lvm2.git
versioning: 'regex:^(?<major>\d+)_(?<minor>\d+)_?(?<patch>\d+)?$'
- matchPackageNames:
- git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
versioning: 'regex:^(?<major>\d{4})(?<minor>\d{2})(?<patch>\d{2})\.?(?<build>\d+)?$'
- matchPackageNames:
- git://git.kernel.org/pub/scm/boot/syslinux/syslinux.git
- git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git
- nvidia/open-gpu-kernel-modules
- dosfstools/dosfstools
- git://git.savannah.gnu.org/grub.git
- https://pagure.io/libaio.git
- rpm-software-management/popt
- PCRE2Project/pcre2
- SELinuxProject/selinux
- git://git.liburcu.org/userspace-rcu.git
- git://git.kernel.org/pub/scm/libs/libcap/libcap.git
versioning: 'regex:^(?<major>\d+)\.(?<minor>\d+)\.?(?<patch>\d+)?$'
- matchPackageNames:
- git://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git
- benhoyt/inih
- systemd/systemd
versioning: 'regex:^(?<major>\d+)\.?(?<minor>\d+)?\.?(?<patch>\d+)?$'
- matchPackageNames:
- git://repo.or.cz/socat.git
- json-c/json-c
versioning: 'regex:^(?<major>\d+)\.(?<minor>\d+)\.?(?<patch>\d+)?\.?(?<build>\d+)?$'
- matchPackageNames:
- openzfs/zfs
versioning: 'regex:^(?<major>\d+)\.(?<minor>\d+)\.?(?<patch>[0-9]{1}[0-8]{0,1})?$'
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
#
# Generated on 2024-12-06T11:24:18Z by kres 232fe63.
# Generated on 2024-12-18T08:06:55Z by kres b9507d6.

# common variables

Expand Down Expand Up @@ -163,7 +163,7 @@ local-%: ## Builds the specified target defined in the Pkgfile using the local
echo $$platform; \
directory="$${platform//\//_}"; \
if [[ -d "$$DEST/$$directory" ]]; then \
mv "$$DEST/$$directory/"* $$DEST; \
mv -f "$$DEST/$$directory/"* $$DEST; \
rmdir "$$DEST/$$directory/"; \
fi; \
done'
Expand Down

0 comments on commit 611ca38

Please sign in to comment.