Skip to content

Commit

Permalink
feat: enable renovate bot
Browse files Browse the repository at this point in the history
Enable renovate bot for dependency updates.

Signed-off-by: Noel Georgi <git@frezbo.dev>
  • Loading branch information
frezbo committed Aug 29, 2022
1 parent 036b63f commit eac3211
Show file tree
Hide file tree
Showing 13 changed files with 122 additions and 27 deletions.
81 changes: 81 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
":semanticCommitScopeDisabled",
"schedule:earlyMondays"
],
"regexManagers": [
{
"fileMatch": [
"vars.yaml"
],
"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}}"
},
{
"fileMatch": [
"Pkgfile"
],
"matchStrings": [
"(?<depName>ghcr.io\\/siderolabs\\/bldr):(?<currentValue>v.*-frontend)"
],
"datasourceTemplate": "docker",
"versioningTemplate": "semver"
},
{
"fileMatch": [
"Makefile"
],
"matchStrings": [
"BLDR_RELEASE\\s+\\?=\\s+(?<currentValue>.*)\\n"
],
"datasourceTemplate": "github-releases",
"depNameTemplate": "siderolabs/bldr"
}
],
"packageRules": [
{
"matchPackagePatterns": [
"*"
],
"matchDatasources": [
"docker"
],
"groupName": "container images"
},
{
"matchPackagePatterns": [
"*"
],
"matchDatasources": [
"go",
"golang-version"
],
"groupName": "go packages"
},
{
"matchPackagePatterns": [
"*"
],
"matchDatasources": [
"npm"
],
"groupName": "node packages"
},
{
"matchPackagePatterns": [
"*"
],
"matchDatasources": [
"git-refs",
"git-tags",
"github-tags",
"github-releases"
],
"groupName": "releases"
}
],
"dependencyDashboard": true
}
1 change: 1 addition & 0 deletions container-runtime/vars.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# renovate: datasource=github-tags extractVersion=^release-(?<version>.*)$ versioning=loose depName=google/gvisor
GVISOR_VERSION: "20220405.0"
1 change: 1 addition & 0 deletions firmware/vars.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
# renovate: datasource=github-releases extractVersion=^microcode-(?<version>.*)$ versioning=loose depName=intel/Intel-Linux-Processor-Microcode-Data-Files
INTEL_UCODE_VERSION: "20220809"
4 changes: 2 additions & 2 deletions nvidia-gpu/nvidia-container-toolkit/glibc/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: glibc
variant: scratch
shell: /bin/bash
dependencies:
- image: ubuntu:22.04
- image: ubuntu:{{ .UBUNTU_IMAGE_VERSION }}
steps:
- sources:
- url: https://ftpmirror.gnu.org/libc/glibc-2.36.tar.gz
- url: https://ftpmirror.gnu.org/libc/glibc-{{ .GLIBC_VERSION }}.tar.gz
destination: glibc.tar.gz
sha256: 02efa6ffbbaf3e10e88f16818a862608d04b0ef838c66f6025ae120530792c9c
sha512: a898d76fb88a68cda122aba26794d91d1088afbc90aaf93505afbf8b607403e8e92f2dd1acface417b9289cb18056579f49176dd88c88e2815b2552bb355f63e
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
name: nvidia-container-cli
variant: scratch
dependencies:
- image: debian:10
- image: debian:{{ .DEBIAN_IMAGE_VERSION }}
# nvidia-pkgs depends on glibc,
# so any stage depending on nvidia-container-cli will have the updated ld.so.cache,
# from both nvidia-pkgs and nvidia-container-cli
- stage: nvidia-pkgs
shell: /bin/bash
steps:
- sources:
- url: https://gitlab.com/nvidia/container-toolkit/libnvidia-container/-/archive/{{ .NVIDIA_CONTAINER_TOOLKIT_VERSION }}/libnvidia-container-{{ .NVIDIA_CONTAINER_TOOLKIT_VERSION }}.tar.gz
- url: https://gitlab.com/nvidia/container-toolkit/libnvidia-container/-/archive/{{ .LIBNVIDIA_CONTAINER_VERSION }}/libnvidia-container-{{ .LIBNVIDIA_CONTAINER_VERSION }}.tar.gz
destination: libnvidia-container.tar.gz
sha256: 777bc66e86458a9e9023f4dfc9260b436620b10fbbace7dec9086d71c4df234b
sha512: 4ecbd5f96e41c090db3ff4bcd2d493b9b0953d203d977d04187d9d860dcf25e8b3593e971451afec10ce7efe1af1c732426d268b6f06f1ae5bb31c860d8d317a
env:
DEBIAN_FRONTEND: noninteractive
GOPATH: /go
REVISION: 395fd41701117121f1fd04ada01e1d7e006a37ae
REVISION: {{ .LIBNVIDIA_CONTAINER_REF }}
WITH_TIRPC: no
WITH_NVCGO: yes
WITH_SECCOMP: yes
Expand Down Expand Up @@ -47,9 +47,9 @@ steps:
xz-utils
# {{ if eq .ARCH "x86_64" }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
curl https://storage.googleapis.com/golang/go1.17.13.linux-amd64.tar.gz | tar -C /usr/local -xz
curl https://storage.googleapis.com/golang/go{{ .GOLANG_VERSION }}.linux-amd64.tar.gz | tar -C /usr/local -xz
# {{ else }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
curl https://storage.googleapis.com/golang/go1.17.13.linux-arm64.tar.gz | tar -C /usr/local -xz
curl https://storage.googleapis.com/golang/go{{ .GOLANG_VERSION }}.linux-arm64.tar.gz | tar -C /usr/local -xz
# {{ end }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
mkdir libnvidia-container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: nvidia-container-runtime
variant: scratch
shell: /bin/bash
dependencies:
- image: ubuntu:22.10
- image: ubuntu:{{ .UBUNTU_IMAGE_VERSION }}
steps:
- sources:
- url: https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/archive/{{ .NVIDIA_CONTAINER_TOOLKIT_VERSION }}/container-toolkit-{{ .NVIDIA_CONTAINER_TOOLKIT_VERSION }}.tar.gz
- url: https://gitlab.com/nvidia/container-toolkit/container-toolkit/-/archive/{{ .CONTAINER_TOOLKIT_VERSION }}/container-toolkit-{{ .CONTAINER_TOOLKIT_VERSION }}.tar.gz
destination: container-toolkit.tar.gz
sha256: 9aa63b8ec9ed2b4b04493eaeaf2c9bea50f0b9eef08b9112961f5ae096fdc5bd
sha512: 6455fe985444081c3c361bfbd008fdfb5366ca8e02d76d2a44e2df2341b722b4269b1f16fd2111ba53a56bb41f7378e924dfe607883a4bf3ce15ee98dac6fecb
env:
GOPATH: /go
GIT_COMMIT: 7cfd3bd
GIT_COMMIT: {{ substr 0 7 .CONTAINER_TOOLKIT_REF }} # build is using short sha
prepare:
- |
Expand All @@ -21,9 +21,9 @@ steps:
apt install -y curl patch build-essential
# {{ if eq .ARCH "x86_64" }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
curl https://storage.googleapis.com/golang/go1.17.13.linux-amd64.tar.gz | tar -C /usr/local -xz
curl https://storage.googleapis.com/golang/go{{ .GOLANG_VERSION }}.linux-amd64.tar.gz | tar -C /usr/local -xz
# {{ else }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
curl https://storage.googleapis.com/golang/go1.17.13.linux-arm64.tar.gz | tar -C /usr/local -xz
curl https://storage.googleapis.com/golang/go{{ .GOLANG_VERSION }}.linux-arm64.tar.gz | tar -C /usr/local -xz
# {{ end }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
mkdir -p container-toolkit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name: nvidia-device-create
variant: scratch
dependencies:
- image: ubuntu:22.10
- image: ubuntu:{{ .UBUNTU_IMAGE_VERSION }}
shell: /bin/bash
steps:
- sources:
Expand Down
8 changes: 4 additions & 4 deletions nvidia-gpu/nvidia-container-toolkit/nvidia-pkgs/pkg.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: nvidia-pkgs
variant: scratch
dependencies:
- image: ubuntu:22.10
- image: ubuntu:{{ .UBUNTU_IMAGE_VERSION }}
# depends on glibc to update ld.so.cache
# so any stage depending on nvidia-pkgs will have the updated cache
- stage: glibc
shell: /bin/bash
steps:
- sources:
# {{ if eq .ARCH "aarch64" }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
- url: https://download.nvidia.com/XFree86/Linux-aarch64/{{ .NVIDIA_DRIVER_VERSION_MAJOR }}.{{ .NVIDIA_DRIVER_VERSION_MINOR }}/NVIDIA-Linux-aarch64-{{ .NVIDIA_DRIVER_VERSION_MAJOR }}.{{ .NVIDIA_DRIVER_VERSION_MINOR }}.run
- url: https://download.nvidia.com/XFree86/Linux-aarch64/{{ .NVIDIA_DRIVER_VERSION }}/NVIDIA-Linux-aarch64-{{ .NVIDIA_DRIVER_VERSION }}.run
destination: nvidia.run
sha256: 0d2ac6c6ca144c8c7bbf1a62034998463b21f2660a793607d88c031650d93e93
sha512: 31ec7ba727bf14263eeadc3880bd8f2aaa0fe8c144aa216bb8af06a154dd1aa5f4a787fe386b20f5d739a49c80435bca5f6deba3010c593e1e54ecd29b4ab1b0
# {{ else }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
- url: https://download.nvidia.com/XFree86/Linux-x86_64/{{ .NVIDIA_DRIVER_VERSION_MAJOR }}.{{ .NVIDIA_DRIVER_VERSION_MINOR }}/NVIDIA-Linux-x86_64-{{ .NVIDIA_DRIVER_VERSION_MAJOR }}.{{ .NVIDIA_DRIVER_VERSION_MINOR }}.run
- url: https://download.nvidia.com/XFree86/Linux-x86_64/{{ .NVIDIA_DRIVER_VERSION }}/NVIDIA-Linux-x86_64-{{ .NVIDIA_DRIVER_VERSION }}.run
destination: nvidia.run
sha256: 0492ddc5b5e65aa00cbc762e8d6680205c8d08e103b7131087a15126aee495e9
sha512: 5221a4ac071eb39a37a841f19cfe4983286dc35e918956b40604404ef36c122612475df7b9a391a9a70bd60f44e598c8a0e5ec54ccc3e90d51f01e1b2fbe5e33
Expand Down Expand Up @@ -52,7 +52,7 @@ steps:
--no-check-for-alternate-installs \
--no-install-libglvnd \
--override-file-type-destination=NVIDIA_MODPROBE:/rootfs/usr/local/bin \
--override-file-type-destination=FIRMWARE:/rootfs/lib/firmware/nvidia/{{ .NVIDIA_DRIVER_VERSION_MAJOR }}.{{ .NVIDIA_DRIVER_VERSION_MINOR }} \
--override-file-type-destination=FIRMWARE:/rootfs/lib/firmware/nvidia/{{ .NVIDIA_DRIVER_VERSION }} \
--no-systemd
# run ldconfig to update the cache
Expand Down
2 changes: 1 addition & 1 deletion nvidia-gpu/nvidia-container-toolkit/vars.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# the first part is the driver version and the second the container-toolkit version
VERSION: "{{ .NVIDIA_DRIVER_VERSION_MAJOR }}.{{ .NVIDIA_DRIVER_VERSION_MINOR }}-{{ .NVIDIA_CONTAINER_TOOLKIT_VERSION }}"
VERSION: "{{ .NVIDIA_DRIVER_VERSION }}-{{ .CONTAINER_TOOLKIT_VERSION }}"
4 changes: 2 additions & 2 deletions nvidia-gpu/nvidia-fabricmanager/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ dependencies:
steps:
- sources:
# {{ if eq .ARCH "aarch64" }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
- url: https://developer.download.nvidia.com/compute/nvidia-driver/redist/fabricmanager/linux-sbsa/fabricmanager-linux-sbsa-{{ .NVIDIA_FABRICMANAGER_VERSION_MAJOR }}.{{ .NVIDIA_FABRICMANAGER_VERSION_MINOR }}-archive.tar.xz
- url: https://developer.download.nvidia.com/compute/nvidia-driver/redist/fabricmanager/linux-sbsa/fabricmanager-linux-sbsa-{{ .NVIDIA_FABRICMANAGER_VERSION }}-archive.tar.xz
destination: fabricmanager.tar.xz
sha256: dac775eaed6bf26ffb7b8e281db7fd83f5edca5625dc86a0aca26f479263b38d
sha512: 7f2c2415c06b6fc993c80e5b21b3c47f5e344e56c5504c72bdfa41a71cd31886b6feb784c93ba74a526e548df0293b6fce1722b09aba822c32b5a5c7255deae1
# {{ else }} This in fact is YAML comment, but Go templating instruction is evaluated by bldr
- url: https://developer.download.nvidia.com/compute/nvidia-driver/redist/fabricmanager/linux-x86_64/fabricmanager-linux-x86_64-{{ .NVIDIA_FABRICMANAGER_VERSION_MAJOR }}.{{ .NVIDIA_FABRICMANAGER_VERSION_MINOR }}-archive.tar.xz
- url: https://developer.download.nvidia.com/compute/nvidia-driver/redist/fabricmanager/linux-x86_64/fabricmanager-linux-x86_64-{{ .NVIDIA_FABRICMANAGER_VERSION }}-archive.tar.xz
destination: fabricmanager.tar.xz
sha256: f3271a899151c762641e2beab68335ab1f52cb5beecef0f474780f8fbe804f58
sha512: 2beb4de1415d234a76981d03cc9f85fa6ff47bdccf9de679547ff37970d680d6227d1696eefaa8921acd9c9b4df813df9f8ec0b448bbeaf15fb8e507016edb92
Expand Down
2 changes: 1 addition & 1 deletion nvidia-gpu/nvidia-fabricmanager/vars.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION: "{{ .NVIDIA_FABRICMANAGER_VERSION_MAJOR }}.{{ .NVIDIA_FABRICMANAGER_VERSION_MINOR }}"
VERSION: "{{ .NVIDIA_FABRICMANAGER_VERSION }}"
2 changes: 1 addition & 1 deletion nvidia-gpu/nvidia-modules/vars.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# the first part is the driver version and the second the talos version for which the module is built against
VERSION: "{{ .NVIDIA_DRIVER_VERSION_MAJOR }}.{{ .NVIDIA_DRIVER_VERSION_MINOR }}-{{ .BUILD_ARG_TAG }}"
VERSION: "{{ .NVIDIA_DRIVER_VERSION }}-{{ .BUILD_ARG_TAG }}"
22 changes: 17 additions & 5 deletions nvidia-gpu/vars.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
NVIDIA_DRIVER_VERSION_MAJOR: 515
NVIDIA_DRIVER_VERSION_MINOR: 65.01
NVIDIA_FABRICMANAGER_VERSION_MAJOR: 515
NVIDIA_FABRICMANAGER_VERSION_MINOR: 65.01
NVIDIA_CONTAINER_TOOLKIT_VERSION: v1.10.0
# renovate: datasource=github-releases depName=NVIDIA/open-gpu-kernel-modules
NVIDIA_DRIVER_VERSION: 515.65.01
NVIDIA_FABRICMANAGER_VERSION: 515.65.01
# renovate: datasource=git-tags depName=https://gitlab.com/nvidia/container-toolkit/container-toolkit.git
CONTAINER_TOOLKIT_VERSION: v1.10.0
CONTAINER_TOOLKIT_REF: 7cfd3bd5108c512354472c779edb05010f8569b7
# renovate: datasource=git-tags depName=https://gitlab.com/nvidia/container-toolkit/libnvidia-container.git
LIBNVIDIA_CONTAINER_VERSION: v1.10.0
LIBNVIDIA_CONTAINER_REF: 395fd41701117121f1fd04ada01e1d7e006a37ae
# renovate: datasource=github-tags extractVersion=^go(?<version>.*)$ versioning=loose depName=golang/go
GOLANG_VERSION: 1.17.13
# renovate: datasource=git-tags extractVersion=^glibc-(?<version>.*)$ versioning=loose depName=https://sourceware.org/git/glibc.git
GLIBC_VERSION: 2.36
# renovate: datasource=docker versioning=loose depName=ubuntu
UBUNTU_IMAGE_VERSION: 22.10
# renovate: datasource=docker versioning=loose depName=debian
DEBIAN_IMAGE_VERSION: 10

0 comments on commit eac3211

Please sign in to comment.