mirror of https://github.com/k3s-io/k3s
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.
72 lines
1.6 KiB
72 lines
1.6 KiB
---
|
|
name: "Bump Sonobuoy 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 }}"
|
|
|
|
actions:
|
|
github:
|
|
title: "Bump Sonobuoy version"
|
|
kind: "github/pullrequest"
|
|
scmid: "k3s"
|
|
spec:
|
|
automerge: false
|
|
labels:
|
|
- "dependencies"
|
|
|
|
|
|
sources:
|
|
sonobuoy:
|
|
name: "Get Sonobuoy latest release version"
|
|
kind: "githubrelease"
|
|
spec:
|
|
owner: "vmware-tanzu"
|
|
repository: "sonobuoy"
|
|
token: "{{ requiredEnv .github.token }}"
|
|
branch: "main"
|
|
versionfilter:
|
|
kind: "latest"
|
|
transformers:
|
|
- trimprefix: "v"
|
|
|
|
conditions:
|
|
docker-image:
|
|
name: "Check sonobuoy/sonobuoy image version in DockerHub"
|
|
kind: "dockerimage"
|
|
sourceid: "sonobuoy"
|
|
spec:
|
|
image: "sonobuoy/sonobuoy"
|
|
transformers:
|
|
- addprefix: "v"
|
|
dockerfiles:
|
|
name: "Check if 'ENV SONOBUOY_VERSION' is set in Dockerfiles"
|
|
kind: "file"
|
|
scmid: "k3s"
|
|
disablesourceinput: true
|
|
spec:
|
|
files:
|
|
- "Dockerfile.test"
|
|
- "conformance/Dockerfile"
|
|
matchpattern: 'ENV SONOBUOY_VERSION \d+\.\d+\.\d+(-\w+)?'
|
|
|
|
targets:
|
|
sonobuoy:
|
|
name: "Update sonobuoy image versions"
|
|
kind: "file"
|
|
scmid: "k3s"
|
|
sourceid: "sonobuoy"
|
|
spec:
|
|
files:
|
|
- "Dockerfile.test"
|
|
- "conformance/Dockerfile"
|
|
matchpattern: 'ENV SONOBUOY_VERSION \d+\.\d+\.\d+(-\w+)?'
|
|
replacepattern: 'ENV SONOBUOY_VERSION {{ source "sonobuoy" }}'
|