Skip to content

Commit c6dae90

Browse files
committed
Find latest version tag which exists on domjudge.org
We can't use latest as there is no release on domjudge.org with that name, but this makes atleast clear which index we try to get. This reverts commit 43982ab and improves on it.
1 parent 43982ab commit c6dae90

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/build-domjudge-container-PR.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
sudo apt update; sudo apt install -y jq curl
5050
set -x
5151
HUBURL="https://registry.hub.docker.com/v2/repositories/domjudge/domserver/tags"
52-
TAG=$(curl $HUBURL|jq '.results | sort_by(.name) | last.name')
52+
TAG=$(curl $HUBURL|jq '.results | sort_by(.name) | .[-2].name')
5353
DJ_TAG=${TAG//\"}
5454
set +x
5555
echo "DOMJUDGE_VERSION=$DJ_TAG" >> $GITHUB_ENV

.github/workflows/build-domjudge-container-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
sudo apt update; sudo apt install jq curl -y
4242
set -x
4343
HUBURL="https://registry.hub.docker.com/v2/repositories/domjudge/domserver/tags"
44-
TAG=$(curl $HUBURL|jq '.results | sort_by(.name) | last.name')
44+
TAG=$(curl $HUBURL|jq '.results | sort_by(.name) | .[-2].name')
4545
DJ_TAG=${TAG//\"}
4646
set +x
4747
echo "DOMJUDGE_VERSION=$DJ_TAG" >> $GITHUB_ENV

0 commit comments

Comments
 (0)