Skip to content

Commit d57683a

Browse files
committed
Fix k3s versioning
Signed-off-by: Dimitris Karakasilis <[email protected]>
1 parent 2d1dc06 commit d57683a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -372,8 +372,9 @@ jobs:
372372
- name: Build 🔧
373373
run: |
374374
# Keep maximum k3s version (by semver)
375+
# add a "v" in front and a "-k3s1" at the end to match the k3s versioning
375376
k3s_version=$(echo '${{ needs.get-standard-matrix.outputs.matrix }}' | \
376-
jq -r '.include | map(.k3s_version) | unique | max_by(split("+")[0] | split(".") | map(tonumber))')
377+
jq -r '.include | map(.k3s_version) | unique | max_by(split("+")[0] | split(".") | map(tonumber))' | sed -E 's/\+.*//; s/^/v/; s/$/-k3s1/')
377378
378379
version=$(git describe --always --tags --dirty)
379380

0 commit comments

Comments
 (0)