Skip to content

Commit 5a8c85e

Browse files
fix: handle docker image not existing yet
1 parent 7eb27ec commit 5a8c85e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/docker-tags

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ while true; do
3737
exit 1
3838
fi
3939

40+
# Check for 404 error - repository doesn't exist yet
41+
if echo "$RESPONSE" | jq -e '.message == "httperror 404: object not found"' >/dev/null 2>&1; then
42+
# Repository doesn't exist, no stable releases
43+
HAS_STABLE_RELEASE=false
44+
break
45+
fi
46+
4047
if ! echo "$RESPONSE" | jq -e '.results' >/dev/null 2>&1; then
4148
echo "ERROR: Invalid JSON response from Docker Hub" >&2
4249
echo "Response: $RESPONSE" >&2

0 commit comments

Comments
 (0)