Skip to content

Commit

Permalink
Fix k3s versioning
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
  • Loading branch information
jimmykarily committed Jan 24, 2025
1 parent 2d1dc06 commit d57683a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,9 @@ jobs:
- name: Build 🔧
run: |
# Keep maximum k3s version (by semver)
# add a "v" in front and a "-k3s1" at the end to match the k3s versioning
k3s_version=$(echo '${{ needs.get-standard-matrix.outputs.matrix }}' | \
jq -r '.include | map(.k3s_version) | unique | max_by(split("+")[0] | split(".") | map(tonumber))')
jq -r '.include | map(.k3s_version) | unique | max_by(split("+")[0] | split(".") | map(tonumber))' | sed -E 's/\+.*//; s/^/v/; s/$/-k3s1/')
version=$(git describe --always --tags --dirty)
Expand Down

0 comments on commit d57683a

Please sign in to comment.