Skip to content

Commit

Permalink
Update updatecli to set label too
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm committed Aug 7, 2024
1 parent f956af3 commit 413d074
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/updatecli.d/bump-latest-snapshot-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,16 @@ sources:
spec:
file: https://storage.googleapis.com/artifacts-api/snapshots/main.json
key: .version
latestSnapshotMajorMinor:
name: Get latest snapshort major and minor
kind: json
spec:
file: https://storage.googleapis.com/artifacts-api/snapshots/main.json
key: .version
transformers:
- findsubmatch:
pattern: '(^\d+\.\d+)\.\d+$'
captureindex: 1

targets:
update-snapshot:
Expand All @@ -41,3 +51,13 @@ targets:
file: '.buildkite/pipeline.schedule-daily.yml'
matchpattern: '(STACK_VERSION:) 8\.[^\s]*\.[^\s]*'
replacepattern: '$1 {{ source "latestSnapshot" }}'

update-snapshot-label:
name: '[updatecli] Update latest snapshot label to {{ source "latestSnapshotMinor" }}'
kind: file
sourceid: latestSnapshot
scmid: default
spec:
file: '.buildkite/pipeline.schedule-daily.yml'
matchpattern: '(Stack Version v8\.)[^\s]+)+ '
replacepattern: 'Stack Vresion v{{ source "latestSnapshotMajorMinor" }}'

0 comments on commit 413d074

Please sign in to comment.