Skip to content

Commit

Permalink
Merge pull request #495 from mgfritch/updatecli-semver
Browse files Browse the repository at this point in the history
updatecli: use `semver` versionfilter
  • Loading branch information
mgfritch authored Jan 31, 2025
2 parents ac30f94 + ef673c5 commit e437532
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 20 deletions.
4 changes: 1 addition & 3 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 All @@ -32,7 +31,6 @@ targets:
- name: UPDATECLI_GITHUB_WORKFLOW_URL
- name: GH_TOKEN


scms:
default:
kind: github
Expand Down
5 changes: 2 additions & 3 deletions updatecli/updatecli.d/updatecanal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ 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]+"

calico:
name: Get calico version
kind: githubrelease
Expand All @@ -28,7 +28,6 @@ sources:
token: '{{ requiredEnv .github.token }}'
username: '{{ requiredEnv .github.username }}'
typefilter:
latest: true
release: true
draft: false
prerelease: false
Expand Down Expand Up @@ -65,7 +64,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
6 changes: 2 additions & 4 deletions updatecli/updatecli.d/updatecilium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ sources:
release: true
draft: false
prerelease: false
latest: true
versionfilter:
kind: latest
kind: semver

cni_plugins:
name: Get CNI plugins version
kind: githubrelease
Expand All @@ -25,7 +25,6 @@ sources:
token: '{{ requiredEnv .github.token }}'
username: '{{ requiredEnv .github.username }}'
typefilter:
latest: true
release: true
draft: false
prerelease: false
Expand All @@ -51,7 +50,6 @@ targets:
- name: UPDATECLI_GITHUB_WORKFLOW_URL
- name: GH_TOKEN


scms:
default:
kind: github
Expand Down
4 changes: 1 addition & 3 deletions updatecli/updatecli.d/updateflannel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ 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]+"

cni_plugins:
name: Get CNI plugins version
kind: githubrelease
Expand All @@ -28,7 +28,6 @@ sources:
token: '{{ requiredEnv .github.token }}'
username: '{{ requiredEnv .github.username }}'
typefilter:
latest: true
release: true
draft: false
prerelease: false
Expand All @@ -54,7 +53,6 @@ targets:
- name: UPDATECLI_GITHUB_WORKFLOW_URL
- name: GH_TOKEN


scms:
default:
kind: github
Expand Down
8 changes: 4 additions & 4 deletions updatecli/updatecli.d/updatemultus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ sources:
release: true
draft: false
prerelease: false
latest: true
versionfilter:
kind: latest
kind: regex
# pattern accepts any semver constraint
pattern: "v[0-9]+.[0-9]+.[0-9]+-build[0-9]+"

cni_plugins:
name: Get CNI plugins version
kind: githubrelease
Expand All @@ -25,7 +27,6 @@ sources:
token: '{{ requiredEnv .github.token }}'
username: '{{ requiredEnv .github.username }}'
typefilter:
latest: true
release: true
draft: false
prerelease: false
Expand All @@ -51,7 +52,6 @@ targets:
- name: UPDATECLI_GITHUB_WORKFLOW_URL
- name: GH_TOKEN


scms:
default:
kind: github
Expand Down
6 changes: 3 additions & 3 deletions updatecli/updatecli.d/updatewhereabouts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ sources:
release: true
draft: false
prerelease: false
latest: true
versionfilter:
kind: latest
kind: regex
# pattern accepts any semver constraint
pattern: "v[0-9]+.[0-9]+.[0-9]+-build[0-9]+"

targets:
whereaboutsImage:
Expand All @@ -32,7 +33,6 @@ targets:
- name: UPDATECLI_GITHUB_WORKFLOW_URL
- name: GH_TOKEN


scms:
default:
kind: github
Expand Down

0 comments on commit e437532

Please sign in to comment.