Skip to content

Commit

Permalink
feat(docker): publish image as soon as ready
Browse files Browse the repository at this point in the history
  • Loading branch information
sileht committed Oct 7, 2020
1 parent 97ff2b3 commit 5f7013d
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions tools/build-docker-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,10 @@ for name in $NAMES; do
-f docker/${arch}.Dockerfile \
.

images_to_push="${images_to_push} $image_url_ci:$TMP_TAG"

if [ "$TAG_NAME" ]; then
docker tag $image_url_ci:$TMP_TAG $image_url_release:${TAG_NAME}
docker tag $image_url_ci:$TMP_TAG $image_url_release:latest
docker push $image_url_release:${TAG_NAME}
else
docker push $image_url_ci:$TMP_TAG
fi

done

for image in $images_to_push; do
docker push $image
done

0 comments on commit 5f7013d

Please sign in to comment.