Skip to content

Commit 918e47c

Browse files
committed
docker: Explicitly return success from tag.sh to avoid build failures
1 parent f5fd542 commit 918e47c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/tag.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ tag_and_push() {
1616
echo "Logging into Docker Hub"
1717
echo $PASSWORD | docker login --username="$DOCKER_HUB_USER" --password-stdin
1818

19-
set -x
19+
set -ex
2020

2121
tag_and_push "$SHORT_SHA"
2222

2323
# Builds on the master branch become the 'latest'
2424
[ "$BRANCH_NAME" = master ] && tag_and_push latest
2525
# Builds of tags set the tag in Docker Hub, too
2626
[ -n "$TAG_NAME" ] && tag_and_push "$TAG_NAME"
27+
28+
exit 0

0 commit comments

Comments
 (0)