Skip to content

Commit

Permalink
Don't fail when stream tag doesn't exists [skip release] (#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
devpow112 authored Nov 7, 2024
1 parent 5f97b49 commit bec8ec7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,12 @@ jobs:
VERSION=${VERSION##*:}
STREAM=${VERSION%-*}
IMAGE_TAG=$IMAGE:$STREAM
EXISTS=$(docker buildx imagetools inspect $IMAGE_TAG 2> /dev/null)
if [[ "$EXISTS" == "" ]]; then
set +e
EXISTS_OUTPUT=$(docker buildx imagetools inspect $IMAGE_TAG 2> /dev/null)
EXISTS_RESULT="$?"
set -e
if [[ "$EXISTS_OUTPUT" == "" || "$EXISTS_RESULT" -ne 0 ]]; then
echo "Stream tag '$STREAM' does not exist, using latest tag"
IMAGE_TAG=$IMAGE:latest
fi
BODY=$'<!-- build details -->\n\n'
Expand Down

0 comments on commit bec8ec7

Please sign in to comment.