Skip to content

Commit

Permalink
Renovate
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Apr 4, 2024
1 parent 0bb5b0e commit 59dfbb5
Show file tree
Hide file tree
Showing 7 changed files with 140 additions and 42 deletions.
4 changes: 2 additions & 2 deletions centos9s.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "qemu" "centos9s" {
iso_url = "https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-boot.iso"
iso_checksum = "file:https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-latest-x86_64-boot.iso.SHA1SUM"
iso_url = "https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-20240401.0-x86_64-boot.iso"
iso_checksum = "file:https://mirror.stream.centos.org/9-stream/BaseOS/x86_64/iso/CentOS-Stream-9-20240401.0-x86_64-boot.iso.SHA1SUM"
vga = "virtio"
cpus = 2
memory = 2048
Expand Down
4 changes: 2 additions & 2 deletions debian-12.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "qemu" "debian12" {
iso_url = "https://cdimage.debian.org/cdimage/release/12.5.0/amd64/iso-cd/debian-12.5.0-amd64-netinst.iso"
iso_checksum = "file:https://cdimage.debian.org/cdimage/release/12.5.0/amd64/iso-cd/SHA512SUMS"
iso_url = "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-12.5.0-amd64-netinst.iso"
iso_checksum = "file:https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/SHA256SUMS"
vga = "virtio"
cpus = 2
memory = 2048
Expand Down
20 changes: 2 additions & 18 deletions opensuse-leap-15.5.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
data "http" "opensuseleap155_iso_checksum" {
url = "https://download.opensuse.org/distribution/leap/15.5/iso/openSUSE-Leap-15.5-NET-x86_64-Current.iso.sha256"
}

local "opensuseleap155_iso_checksum_split" {
expression = compact(split(" ", data.http.opensuseleap155_iso_checksum.body))
}

local "opensuseleap155_iso_checksum" {
expression = trimspace(local.opensuseleap155_iso_checksum_split[0])
}

local "opensuseleap155_iso_name" {
expression = trimspace(local.opensuseleap155_iso_checksum_split[1])
}

source "qemu" "opensuseleap155" {
iso_url = "https://download.opensuse.org/distribution/leap/15.5/iso/${local.opensuseleap155_iso_name}"
iso_checksum = "sha256:${local.opensuseleap155_iso_checksum}"
iso_url = "https://download.opensuse.org/distribution/leap/15.5/iso/openSUSE-Leap-15.5-NET-x86_64-Build491.1-Media.iso"
iso_checksum = "file:https://download.opensuse.org/distribution/leap/15.5/iso/openSUSE-Leap-15.5-NET-x86_64-Build491.1-Media.iso.sha256"
vga = "virtio"
cpus = 2
memory = 2048
Expand Down
20 changes: 2 additions & 18 deletions opensuse-tumbleweed.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,22 +1,6 @@
data "http" "opensusetumbleweed_iso_checksum" {
url = "https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-NET-x86_64-Current.iso.sha256"
}

local "opensusetumbleweed_iso_checksum_split" {
expression = compact(split(" ", data.http.opensusetumbleweed_iso_checksum.body))
}

local "opensusetumbleweed_iso_checksum" {
expression = trimspace(local.opensusetumbleweed_iso_checksum_split[0])
}

local "opensusetumbleweed_iso_name" {
expression = trimspace(local.opensusetumbleweed_iso_checksum_split[1])
}

source "qemu" "opensusetumbleweed" {
iso_url = "https://download.opensuse.org/tumbleweed/iso/${local.opensusetumbleweed_iso_name}"
iso_checksum = "sha256:${local.opensusetumbleweed_iso_checksum}"
iso_url = "https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-NET-x86_64-Snapshot20240403-Media.iso"
iso_checksum = "file:https://download.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-NET-x86_64-Snapshot20240403-Media.iso.sha256"
vga = "virtio"
cpus = 2
memory = 2048
Expand Down
14 changes: 14 additions & 0 deletions renovate-local-dry-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

export LOG_LEVEL="${LOG_LEVEL:-debug}"

exec podman run \
--rm -it \
--userns=keep-id \
-e LOG_LEVEL \
-e GITHUB_COM_TOKEN \
-v "$PWD:$PWD" \
-w "$PWD" \
ghcr.io/renovatebot/renovate:slim \
--platform=local \
"$@"
116 changes: 116 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
],
"separateMinorPatch": false,
"customDatasources": {
"html": {
"format": "html"
}
},
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"\\.pkr\\.hcl$"
],
"matchStrings": [
"\\b(?<registryUrl>https://\\S+/)alpine-virt-(?<currentValue>\\d+\\.\\d+\\.\\d+)-x86_64\\.iso\\b"
],
"datasourceTemplate": "custom.html",
"depNameTemplate": "alpine-virt",
"extractVersionTemplate": "(^|/)alpine-virt-(?<version>\\d+\\.\\d+\\.\\d+)-x86_64\\.iso$"
},
{
"customType": "regex",
"fileMatch": [
"\\.pkr\\.hcl$"
],
"matchStrings": [
"\\b(?<registryUrl>https://\\S+/)CentOS-Stream-(?<currentValue>\\d+-\\d+\\.\\d+)-x86_64-boot\\.iso\\b"
],
"datasourceTemplate": "custom.html",
"depNameTemplate": "CentOS-Stream",
"extractVersionTemplate": "(^|/)CentOS-Stream-(?<version>\\d+-\\d+\\.\\d+)-x86_64-boot\\.iso$",
"versioningTemplate": "regex:^(?<major>\\d+)-(?<minor>\\d+)\\.(?<patch>\\d+)$"
},
{
"customType": "regex",
"fileMatch": [
"\\.pkr\\.hcl$"
],
"matchStrings": [
"\\b(?<registryUrl>https://\\S+/)Fedora-Everything-netinst-x86_64-(?<currentValue>\\d+-\\d+\\.\\d+)\\.iso\\b",
"\\b(?<registryUrl>https://\\S+/)Fedora-Everything-(?<currentValue>\\d+-\\d+\\.\\d+)-x86_64-CHECKSUM\\b"
],
"datasourceTemplate": "custom.html",
"depNameTemplate": "Fedora-Everything",
"extractVersionTemplate": "(^|/)Fedora-Everything-netinst-x86_64-(?<version>\\d+-\\d+\\.\\d+)\\.iso$",
"versioningTemplate": "regex:^(?<major>\\d+)-(?<minor>\\d+)\\.(?<patch>\\d+)$"
},
{
"customType": "regex",
"fileMatch": [
"\\.pkr\\.hcl$"
],
"matchStrings": [
"\\b(?<registryUrl>https://\\S+/)Fedora-Silverblue-ostree-x86_64-(?<currentValue>\\d+-\\d+\\.\\d+)\\.iso\\b",
"\\b(?<registryUrl>https://\\S+/)Fedora-Silverblue-(?<currentValue>\\d+-\\d+\\.\\d+)-x86_64-CHECKSUM\\b"
],
"datasourceTemplate": "custom.html",
"depNameTemplate": "Fedora-Silverblue",
"extractVersionTemplate": "(^|/)Fedora-Silverblue-ostree-x86_64-(?<version>\\d+-\\d+\\.\\d+)\\.iso$",
"versioningTemplate": "regex:^(?<major>\\d+)-(?<minor>\\d+)\\.(?<patch>\\d+)$"
},
{
"customType": "regex",
"fileMatch": [
"\\.pkr\\.hcl$"
],
"matchStrings": [
"\\b(?<registryUrl>https://\\S+/)openSUSE-Leap-(?<currentValue>\\d+\\.\\d+-NET-x86_64-Build\\d+\\.\\d+)-Media\\.iso\\b"
],
"datasourceTemplate": "custom.html",
"depNameTemplate": "openSUSE-Leap",
"extractVersionTemplate": "(^|/)openSUSE-Leap-(?<version>\\d+\\.\\d+-NET-x86_64-Build\\d+\\.\\d+)-Media\\.iso$",
"versioningTemplate": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)-NET-x86_64-Build(?<patch>\\d+)\\.(?<revision>\\d+)$"
},
{
"customType": "regex",
"fileMatch": [
"\\.pkr\\.hcl$"
],
"matchStrings": [
"\\b(?<registryUrl>https://\\S+/)openSUSE-Tumbleweed-NET-x86_64-Snapshot(?<currentValue>\\d+)-Media\\.iso\\b"
],
"datasourceTemplate": "custom.html",
"depNameTemplate": "openSUSE-Tumbleweed",
"extractVersionTemplate": "(^|/)openSUSE-Tumbleweed-NET-x86_64-Snapshot(?<version>\\d+)-Media\\.iso$"
},
{
"customType": "regex",
"fileMatch": [
"\\.pkr\\.hcl$"
],
"matchStrings": [
"\\b(?<registryUrl>https://\\S+/)ubuntu-(?<currentValue>\\d+\\.\\d+\\.\\d+)-desktop-amd64\\.iso\\b"
],
"datasourceTemplate": "custom.html",
"depNameTemplate": "ubuntu",
"extractVersionTemplate": "(^|/)ubuntu-(?<version>\\d+\\.\\d+\\.\\d+)-desktop-amd64\\.iso$"
},
{
"customType": "regex",
"fileMatch": [
"\\.pkr\\.hcl$"
],
"matchStrings": [
"\\b(?<registryUrl>https://\\S+/)debian-(?<currentValue>\\d+\\.\\d+\\.\\d+)-amd64-netinst\\.iso\\b"
],
"datasourceTemplate": "custom.html",
"depNameTemplate": "debian",
"extractVersionTemplate": "(^|/)debian-(?<version>\\d+\\.\\d+\\.\\d+)-amd64-netinst\\.iso$"
}
]
}
4 changes: 2 additions & 2 deletions ubuntu-23.10.pkr.hcl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source "qemu" "ubuntu2310" {
iso_url = "https://releases.ubuntu.com/23.10.1/ubuntu-23.10.1-desktop-amd64.iso"
iso_checksum = "file:https://releases.ubuntu.com/23.10.1/SHA256SUMS"
iso_url = "https://releases.ubuntu.com/mantic/ubuntu-23.10.1-desktop-amd64.iso"
iso_checksum = "file:https://releases.ubuntu.com/mantic/SHA256SUMS"
vga = "virtio"
cpus = 2
memory = 2048
Expand Down

0 comments on commit 59dfbb5

Please sign in to comment.