From 58bceb8425a9dcf05e5e2a541969ee270adec802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Le=20Meur?= Date: Fri, 8 Sep 2023 08:48:04 +0200 Subject: [PATCH] add updatecli manifest --- .../updatecli.d/charts/mirrorbits-parent.yaml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 updatecli/updatecli.d/charts/mirrorbits-parent.yaml 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