diff --git a/updatecli/updatecli.d/charts/mirrorbits-parent.yaml b/updatecli/updatecli.d/charts/mirrorbits-parent.yaml new file mode 100644 index 000000000..631e02598 --- /dev/null +++ b/updatecli/updatecli.d/charts/mirrorbits-parent.yaml @@ -0,0 +1,41 @@ +name: "Bump mirrorbits-parent Helm Chart Version" + +scms: + default: + kind: github + spec: + user: "{{ .github.user }}" + email: "{{ .github.email }}" + owner: "{{ .github.owner }}" + repository: "{{ .github.repository }}" + token: "{{ requiredEnv .github.token }}" + username: "{{ .github.username }}" + branch: "{{ .github.branch }}" + +sources: + lastChartVersion: + kind: helmchart + name: get last chart version + spec: + url: https://jenkins-infra.github.io/helm-charts + name: mirrorbits-parent + +targets: + updateChartVersion: + name: "Update the chart version for mirrorbits-parent" + kind: file + spec: + file: clusters/publick8s.yaml + matchpattern: 'chart: jenkins-infra\/mirrorbits-parent((\r\n|\r|\n)(\s+))version: .*' + replacepattern: 'chart: jenkins-infra/mirrorbits-parent${1}version: {{ source "lastChartVersion" }}' + scmid: default + +actions: + default: + kind: github/pullrequest + scmid: default + title: Bump `mirrorbits-parent` helm chart version to {{ source "lastChartVersion" }} + spec: + labels: + - dependencies + - mirrorbits-parent