Skip to content

Commit a66ca73

Browse files
committed
ci: Fix finding latest nginx version
1 parent 7ff1adf commit a66ca73

File tree

1 file changed

+1
-1
lines changed
  • .github/actions/latest-docker-repository-version

1 file changed

+1
-1
lines changed

.github/actions/latest-docker-repository-version/action

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RESPONSE="$(curl -sL https://registry.hub.docker.com/v2/repositories/${DOCKER_HU
66

77
echo "${RESPONSE}" | jq
88

9-
LATEST_PUSHED_VERSION="$(echo "${RESPONSE}" | jq -r '.results[].name' | sort -Vr | grep -oE '^[0-9]+\.[0-9]+$' | head -n 1 | tr -d '\n')"
9+
LATEST_PUSHED_VERSION="$(echo "${RESPONSE}" | jq -r '.results[].name' | sort -Vr | grep -oE '^[0-9]+\.[0-9]+(-|$)' | head -n 1 | tr -d '\n' | tr -d '-' )"
1010

1111
test -n "${LATEST_PUSHED_VERSION}" || ( echo "LATEST_PUSHED_VERSION is not found!" && false )
1212

0 commit comments

Comments
 (0)