Skip to content

Commit 43982ab

Browse files
committed
Always use the latest tag
In the past we would search for the last pushed which would with semantic versioning be the same, this makes more sense IMHO.
1 parent 62889e1 commit 43982ab

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) | .[length-2].name')
52+
TAG=$(curl $HUBURL|jq '.results | sort_by(.name) | last.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) | .[length-2].name')
44+
TAG=$(curl $HUBURL|jq '.results | sort_by(.name) | last.name')
4545
DJ_TAG=${TAG//\"}
4646
set +x
4747
echo "DOMJUDGE_VERSION=$DJ_TAG" >> $GITHUB_ENV

0 commit comments

Comments
 (0)