You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
k3s/updatecli/updatecli.d/klipper.yaml

106 lines
2.9 KiB

---
name: "Bump Klipper Helm and LB versions"
scms:
k3s:
kind: "github"
spec:
user: "{{ .github.user }}"
email: "{{ .github.email }}"
username: "{{ .github.username }}"
token: "{{ requiredEnv .github.token }}"
owner: "{{ .k3s.org }}"
repository: "{{ .k3s.repo }}"
branch: "{{ .k3s.branch }}"
commitmessage:
title: "Bump Klipper version"
klipper-helm:
kind: "github"
spec:
user: "{{ .github.user }}"
email: "{{ .github.email }}"
username: "{{ .github.username }}"
token: "{{ requiredEnv .github.token }}"
owner: "{{ .k3s.org }}"
repository: "{{ .klipper_helm.repo }}"
branch: "{{ .klipper_helm.branch }}"
klipper-lb:
kind: "github"
spec:
user: "{{ .github.user }}"
email: "{{ .github.email }}"
username: "{{ .github.username }}"
token: "{{ requiredEnv .github.token }}"
owner: "{{ .k3s.org }}"
repository: "{{ .klipper_lb.repo }}"
branch: "{{ .klipper_lb.branch }}"
actions:
github:
title: "Bump Klipper Helm and LB versions"
kind: "github/pullrequest"
scmid: "k3s"
spec:
automerge: false
mergemethod: "squash"
usetitleforautomerge: true
labels:
- "dependencies"
sources:
klipper-helm:
name: "Get Klipper Helm latest release version"
kind: "githubrelease"
spec:
owner: "{{ .klipper_helm.org }}"
repository: "{{ .klipper_helm.repo }}"
branch: "{{ .klipper_helm.branch }}"
token: "{{ requiredEnv .github.token }}"
versionfilter:
kind: "latest"
klipper-lb:
name: "Get Klipper LB latest release version"
kind: "githubrelease"
spec:
owner: "{{ .klipper_helm.org }}"
repository: "{{ .klipper_lb.repo }}"
branch: "{{ .klipper_lb.branch }}"
token: "{{ requiredEnv .github.token }}"
versionfilter:
kind: "latest"
conditions:
klipper-helm:
name: "Check rancher/klipper-helm image version in DockerHub"
kind: "dockerimage"
sourceid: "klipper-helm"
spec:
image: "rancher/klipper-helm"
klipper-lb:
name: "Check rancher/klipper-lb image version in DockerHub"
kind: "dockerimage"
sourceid: "klipper-lb"
spec:
image: "rancher/klipper-lb"
targets:
klipper-lb:
name: "Update rancher/klipper-lb image versions"
kind: "file"
scmid: "k3s"
sourceid: "klipper-lb"
spec:
files:
- "pkg/cloudprovider/servicelb.go"
- "scripts/airgap/image-list.txt"
matchpattern: 'rancher/klipper-lb:v\d+\.\d+\.\d+(-\w+)?'
replacepattern: 'rancher/klipper-lb:{{ source "klipper-lb" }}'
klipper-helm:
name: "Update rancher/klipper-helm image versions"
kind: "file"
scmid: "k3s"
sourceid: "klipper-helm"
spec:
file: "scripts/airgap/image-list.txt"
matchpattern: 'rancher/klipper-helm:v\d+\.\d+\.\d+(-\w+)?'
replacepattern: 'rancher/klipper-helm:{{ source "klipper-helm" }}'