From 643bd82496c9f95f15d0cdfab6c28e471abdc7cb Mon Sep 17 00:00:00 2001 From: Fabian Koller Date: Tue, 3 Feb 2026 17:04:11 +0100 Subject: [PATCH] ci: sort versions by semantic increment, not literal increment otherwise 1877.10 < 1877.9 --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8a985ef..68e6106 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,8 +33,8 @@ jobs: id: fetch_tag if: ${{ inputs.image_tag == '' || github.event_name == 'workflow_run' || github.event_name == 'push' }} run: | - #latest_tag=$(oras repo tags ghcr.io/gardenlinux/gardenlinux-ccloud | grep -E '^[0-9]+\.[0-9]+\.[0-9]+-metal-sci-usi-amd64-[0-9]+-[0-9]+-[0-9]-[0-9a-f]{8}$' | sort -r | head -n 1) - latest_tag=$(oras repo tags ghcr.io/gardenlinux/gardenlinux-ccloud | grep -E '^1877\.[0-9]+\.[0-9]+-metal-sci-usi-amd64-[0-9]+-[0-9]+-[0-9]+-[0-9a-f]{8}$' | sort -r | head -n 1) + #latest_tag=$(oras repo tags ghcr.io/gardenlinux/gardenlinux-ccloud | grep -E '^[0-9]+\.[0-9]+\.[0-9]+-metal-sci-usi-amd64-[0-9]+-[0-9]+-[0-9]-[0-9a-f]{8}$' | sort --version-sort -r | head -n 1) + latest_tag=$(oras repo tags ghcr.io/gardenlinux/gardenlinux-ccloud | grep -E '^1877\.[0-9]+\.[0-9]+-metal-sci-usi-amd64-[0-9]+-[0-9]+-[0-9]+-[0-9a-f]{8}$' | sort --version-sort -r | head -n 1) echo $latest_tag echo "latest_tag=$latest_tag" >> $GITHUB_ENV - name: Build