Skip to content

Commit

Permalink
Fix k3s version selection
Browse files Browse the repository at this point in the history
Signed-off-by: Dimitris Karakasilis <[email protected]>
  • Loading branch information
jimmykarily committed Jan 24, 2025
1 parent 49caa1c commit 2d1dc06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@ jobs:
packages: system/kairos-agent
- name: Build 🔧
run: |
# TODO: Does "sort" work correctly on k3s versions? Which version do we want?
# Keep maximum k3s version (by semver)
k3s_version=$(echo '${{ needs.get-standard-matrix.outputs.matrix }}' | \
jq -r '[.[].k3s_version] | unique | sort | .[0]')
jq -r '.include | map(.k3s_version) | unique | max_by(split("+")[0] | split(".") | map(tonumber))')
version=$(git describe --always --tags --dirty)
Expand Down

0 comments on commit 2d1dc06

Please sign in to comment.