Skip to content

Commit

Permalink
updatecli: use semver versionfilter
Browse files Browse the repository at this point in the history
Version bump PRs should use the semver instead of the latest tag

Issue: rancher/rke2#6402
Signed-off-by: Michael Fritch <[email protected]>
  • Loading branch information
mgfritch committed Aug 2, 2024
1 parent 5d4291b commit 3de2c16
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 19 deletions.
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/updatecalico.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ sources:
release: true
draft: false
prerelease: false
latest: true
versionfilter:
kind: latest
kind: semver

targets:
calicoImage:
Expand Down
12 changes: 3 additions & 9 deletions updatecli/updatecli.d/updatecanal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ sources:
token: '{{ requiredEnv .github.token }}'
username: '{{ requiredEnv .github.username }}'
typefilter:
latest: true
release: true
draft: false
prerelease: false
versionfilter:
kind: regex
# pattern accepts any semver constraint
pattern: "v[0-9]+.[0-9]+.[0-9]+-build[0-9]+"
kind: semver
calico:
name: Get calico version
kind: githubrelease
Expand All @@ -28,14 +25,11 @@ sources:
token: '{{ requiredEnv .github.token }}'
username: '{{ requiredEnv .github.username }}'
typefilter:
latest: true
release: true
draft: false
prerelease: false
versionfilter:
kind: regex
# pattern accepts any semver constraint
pattern: "v[0-9]+.[0-9]+.[0-9]+-build[0-9]+"
kind: semver

targets:
canalImage:
Expand Down Expand Up @@ -63,7 +57,7 @@ scms:
owner: '{{ .github.owner }}'
repository: '{{ .github.repository }}'
branch: '{{ .github.branch }}'

actions:
default:
title: 'Bump flannel version to {{ source "flannel" }} and Calico to {{ source "calico" }} on Canal'
Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/updatecilium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ sources:
release: true
draft: false
prerelease: false
latest: true
versionfilter:
kind: latest
kind: semver

targets:
ciliumImage:
Expand Down
5 changes: 1 addition & 4 deletions updatecli/updatecli.d/updateflannel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ sources:
token: '{{ requiredEnv .github.token }}'
username: '{{ requiredEnv .github.username }}'
typefilter:
latest: true
release: true
draft: false
prerelease: false
versionfilter:
kind: regex
# pattern accepts any semver constraint
pattern: "v[0-9]+.[0-9]+.[0-9]+-build[0-9]+"
kind: semver

targets:
flannelImage:
Expand Down
3 changes: 1 addition & 2 deletions updatecli/updatecli.d/updatemultus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ sources:
release: true
draft: false
prerelease: false
latest: true
versionfilter:
kind: latest
kind: semver

targets:
multusImage:
Expand Down

0 comments on commit 3de2c16

Please sign in to comment.