From 5b8b54571e4685fc7c7758a33d08185a8a32f185 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Mon, 5 Feb 2024 12:31:47 +0100 Subject: [PATCH] Use updatecli to update the version Signed-off-by: Manuel Buil --- updatecli/updatecli.d/updatewhereabouts.yaml | 63 ++++++++++++++++++++ updatecli/values.yaml | 3 + 2 files changed, 66 insertions(+) create mode 100644 updatecli/updatecli.d/updatewhereabouts.yaml diff --git a/updatecli/updatecli.d/updatewhereabouts.yaml b/updatecli/updatecli.d/updatewhereabouts.yaml new file mode 100644 index 0000000..bbef3f3 --- /dev/null +++ b/updatecli/updatecli.d/updatewhereabouts.yaml @@ -0,0 +1,63 @@ +--- +name: "Update whereabouts version" + +sources: + whereabouts: + name: Get whereabouts version + kind: githubrelease + spec: + owner: k8snetworkplumbingwg + repository: whereabouts + token: '{{ requiredEnv .github.token }}' + typefilter: + release: true + draft: false + prerelease: false + versionfilter: + kind: latest + +targets: + dockerfile: + name: "Bump to latest whereabouts version in Dockerfile" + kind: dockerfile + scmid: default + sourceid: whereabouts + spec: + file: "Dockerfile" + instruction: + keyword: "ARG" + matcher: "TAG" + + makefile: + name: "Bump to latest whereabouts version in Makefile" + kind: file + scmid: default + disablesourceinput: true + spec: + file: Makefile + matchpattern: '(?m)^TAG \?\= (.*)' + replacepattern: 'TAG ?= {{ source "whereabouts" }}$$(BUILD_META)' + +scms: + default: + kind: github + spec: + token: '{{ requiredEnv .github.token }}' + username: '{{ requiredEnv .github.username }}' + user: '{{ .github.user }}' + email: '{{ .github.email }}' + owner: '{{ .github.owner }}' + repository: '{{ .github.repository }}' + branch: '{{ .github.branch }}' + +actions: + default: + title: 'Bump whereabouts version to {{ source "whereabouts" }}' + kind: github/pullrequest + spec: + automerge: false + labels: + - chore + - skip-changelog + - status/auto-created + scmid: default diff --git a/updatecli/values.yaml b/updatecli/values.yaml index cf13045..b0c6953 100644 --- a/updatecli/values.yaml +++ b/updatecli/values.yaml @@ -3,3 +3,6 @@ github: email: "41898282+github-actions[bot]@users.noreply.github.com" username: "UPDATECLI_GITHUB_ACTOR" token: "UPDATECLI_GITHUB_TOKEN" + repository: "image-build-multus" + branch: "main" + owner: "rancher"