k3s/updatecli/updatecli.d/local-path-provisioner.yaml
Derek Nola 291f8bfe00
Slow dependency CI to weekly (#6764)
* Add labels to updatecli PRs
* Run weekly

Signed-off-by: Derek Nola <derek.nola@suse.com>
2023-01-18 09:39:46 -08:00

71 lines
2.1 KiB
YAML

---
name: "Bump Local Path Provisioner version"
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 Local Path Provisioner version"
local-path-provisioner:
kind: "github"
spec:
user: "{{ .github.user }}"
email: "{{ .github.email }}"
username: "{{ .github.username }}"
token: "{{ requiredEnv .github.token }}"
owner: "{{ .local_path_provisioner.org }}"
repository: "{{ .local_path_provisioner.repo }}"
branch: "{{ .local_path_provisioner.branch }}"
actions:
github:
title: "Bump Local Path Provisioner version"
kind: "github/pullrequest"
scmid: "k3s"
spec:
automerge: false
mergemethod: "squash"
usetitleforautomerge: true
labels:
- "dependencies"
sources:
local-path-provisioner:
name: "Get Local Path Provisioner latest release version"
kind: "githubrelease"
spec:
owner: "{{ .local_path_provisioner.org }}"
repository: "{{ .local_path_provisioner.repo }}"
branch: "{{ .local_path_provisioner.branch }}"
token: "{{ requiredEnv .github.token }}"
versionfilter:
kind: "latest"
conditions:
local-path-provisioner:
name: "Check rancher/local-path-provisioner image version in DockerHub"
kind: "dockerimage"
sourceid: "local-path-provisioner"
spec:
image: "rancher/local-path-provisioner"
targets:
local-path-provisioner:
name: "Update rancher/local-path-provisioner image version"
kind: "file"
scmid: "k3s"
sourceid: "local-path-provisioner"
spec:
files:
- "manifests/local-storage.yaml"
- "scripts/airgap/image-list.txt"
matchpattern: 'rancher/local-path-provisioner:v\d+\.\d+\.\d+(-\w+)?'
replacepattern: 'rancher/local-path-provisioner:{{ source `local-path-provisioner` }}'