]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
[CI] Instead of selecting the most recent tag, select the highest version number.
authorHans Kristian Rosbach <hk-git@circlestorm.org>
Mon, 17 Mar 2025 15:29:01 +0000 (16:29 +0100)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 18 Mar 2025 20:04:58 +0000 (21:04 +0100)
arch/s390/self-hosted-builder/actions-runner.Dockerfile

index 6a16b9f36b7990c947f1d8cd1408b9d6b1382769..1a9c3a4eba191546647926ff0bb1ac84237f0742 100644 (file)
@@ -14,7 +14,7 @@ RUN     dnf install -y -q dotnet-sdk-8.0 && \
 RUN     cd /tmp && \
         git clone -q https://github.com/actions/runner && \
         cd runner && \
-        git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) -b build && \
+        git checkout $(git tag | grep "^v[0-9]\+\.[0-9]\+\.[0-9]\+$" | sort -V | tail -1) -b build && \
         wget https://github.com/anup-kodlekere/gaplib/raw/refs/heads/main/patches/runner-main-sdk8-s390x.patch -O runner-sdk-8.patch && \
         git apply runner-sdk-8.patch && \
         sed -i'' -e /version/s/8......\"$/$8.0.100\"/ src/global.json