From b3f097bba7a8adc0fabc02334c1dfa64ecd16a94 Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Tue, 18 Jun 2024 17:34:56 -0600 Subject: [PATCH] Add manifiest to bump to the latest upstream version Signed-off-by: Michael Fritch --- updatecli/updatecli.d/update-upstream.yaml | 63 ++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 updatecli/updatecli.d/update-upstream.yaml diff --git a/updatecli/updatecli.d/update-upstream.yaml b/updatecli/updatecli.d/update-upstream.yaml new file mode 100644 index 0000000..3c66b62 --- /dev/null +++ b/updatecli/updatecli.d/update-upstream.yaml @@ -0,0 +1,63 @@ +--- +name: "Update upstream version" + +sources: + upstream: + name: Get upstream version + kind: githubrelease + spec: + owner: kubernetes-sigs + repository: node-feature-discovery + token: '{{ requiredEnv .github.token }}' + typefilter: + release: true + draft: false + prerelease: false + versionfilter: + kind: latest + +targets: + dockerfile: + name: 'Bump Dockerfile to upstream version {{ source "upstream" }}' + kind: dockerfile + scmid: default + sourceid: upstream + spec: + file: "Dockerfile" + instruction: + keyword: "ARG" + matcher: "TAG" + + makefile: + name: 'Bump Makefile to upstream version {{ source "upstream" }}' + kind: file + scmid: default + disablesourceinput: true + spec: + file: Makefile + matchpattern: '(?m)^TAG \:\= (.*)' + replacepattern: 'TAG := {{ source "upstream" }}$$(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 to upstream version {{ source "upstream" }}' + kind: github/pullrequest + spec: + automerge: false + labels: + - chore + - skip-changelog + - status/auto-created + scmid: default