From a26a56ee40db8caba5deaf01d4e3864f87334423 Mon Sep 17 00:00:00 2001 From: Manuel Buil Date: Wed, 28 Feb 2024 11:00:26 +0100 Subject: [PATCH] [updatecli] Use tags instead of githubrelease Signed-off-by: Manuel Buil --- updatecli/updatecli.d/updatednsnodecache.yaml | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/updatecli/updatecli.d/updatednsnodecache.yaml b/updatecli/updatecli.d/updatednsnodecache.yaml index 53ce4ea..8c547b7 100644 --- a/updatecli/updatecli.d/updatednsnodecache.yaml +++ b/updatecli/updatecli.d/updatednsnodecache.yaml @@ -4,17 +4,12 @@ name: "Update autoscaler version" sources: autoscaler: name: Get autoscaler version - kind: githubrelease + kind: gittag + scmid: upstream spec: - owner: kubernetes-sigs - repository: cluster-proportional-autoscaler - token: '{{ requiredEnv .github.token }}' - typefilter: - release: true - draft: false - prerelease: false versionfilter: - kind: latest + kind: regex + pattern: '^v\d+\.\d+\.\d+$' targets: dockerfile: @@ -50,6 +45,14 @@ scms: repository: '{{ .github.repository }}' branch: '{{ .github.branch }}' + upstream: + kind: github + spec: + owner: "kubernetes-sigs" + repository: "cluster-proportional-autoscaler" + branch: "master" + token: '{{ requiredEnv .github.token }}' + actions: default: title: 'Bump autoscaler version to {{ source "autoscaler" }}'