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

Configure Renovate #107

Merged
merged 5 commits into from
Mar 25, 2024
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
1 change: 1 addition & 0 deletions .ci/build
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash -eu

# renovate: datasource=github-releases depName=gardenlinux/gardenlinux
GARDENLINUX_VERSION=1443.0
SOURCE_PATH=${SOURCE_PATH:-}
GENERATED_DOCKERFILES_PATH=${GENERATED_DOCKERFILES_PATH:-}
Expand Down
49 changes: 49 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
extends: [
"config:recommended",
":semanticCommitsDisabled",
"regexManagers:githubActionsVersions",
"group:monorepos"
],
labels: ["kind/enhancement"],
customManagers: [
{
// Update `_VERSION` and `_version` variables in Makefiles and scripts.
// Inspired by `regexManagers:dockerfileVersions` preset.
customType: "regex",
fileMatch: [
"Makefile$",
"\\.yaml$",
"\\.sh$",
"^hacks/*",
"^.ci/build$"
],
matchStrings: [
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s.+?_(VERSION|version) *[?:]?= *\"?(?<currentValue>.+?)\"?\\s"
]
},
{
// Update `version` variables in common-components.yaml.
// Inspired by `regexManagers:dockerfileVersions` preset.
customType: "regex",
fileMatch: ["common-components\\.yaml$"],
matchStrings: [
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s+version\\s*:\\s*[\"']?(?<currentValue>.+?)[\"']?\\s"
]
},
],
packageRules: [
{
// Group github-actions in one PR.
groupName: "github-actions",
matchManagers: ["github-actions"]
},
{
// Only create PRs for patch updates of kubectl.
matchPackageNames: ["kubernetes/kubernetes"],
// This is a compromise due to the version skew policy of Kubernetes.
allowedVersions: "~1.28"
}
]
}
3 changes: 3 additions & 0 deletions dockerfile-configs/common-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@

- curl:
- name: yaml2json
# renovate: datasource=github-releases depName=bronze1man/yaml2json
version: v1.3
from: https://github.com/bronze1man/yaml2json/releases/download/{version}/yaml2json_linux_amd64
info: transform yaml string to json string without the type infomation.
- name: kubetail
from: https://raw.githubusercontent.com/johanhaleby/kubetail/master/kubetail
info: Bash script that enables you to aggregate (tail/follow) logs from multiple pods into one stream
- name: nerdctl
# renovate: datasource=github-releases depName=containerd/nerdctl
version: 1.7.3
from: https://github.com/containerd/nerdctl/releases/download/v{version}/nerdctl-{version}-linux-amd64.tar.gz
to: /nerdctl.tar.gz
Expand All @@ -62,6 +64,7 @@
echo namespace = \"k8s.io\" >> /etc/nerdctl/nerdctl.toml
info: nerdctl is a Docker-compatible CLI for containerd. The root directory of the host has to be mounted under `/host`
- name: kubectl
# renovate: datasource=github-releases depName=kubernetes/kubernetes
version: v1.27.10
from: https://dl.k8s.io/release/{version}/bin/linux/amd64/kubectl
info: command line tool for controlling Kubernetes clusters.
Expand Down