Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updatecli: use semver versionfilter #495

Open
wants to merge 1 commit into
base: main-source
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you should use the pattern config for semver too.

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
Loading