Skip to content

Commit f43fd2c

Browse files
author
Vladimir Kotal
committed
exit with success if Docker username and/or password is empty
such as Dependabot initiated PRs
1 parent 6e3afe8 commit f43fd2c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

dev/docker.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ if [[ "$OPENGROK_REPO_SLUG" != "oracle/opengrok" ]]; then
9999
fi
100100

101101
if [[ -z $DOCKER_USERNAME ]]; then
102-
echo "DOCKER_USERNAME is empty"
103-
exit 1
102+
echo "DOCKER_USERNAME is empty, exiting"
103+
exit 0
104104
fi
105105

106106
if [[ -z $DOCKER_PASSWORD ]]; then
107-
echo "DOCKER_PASSWORD is empty"
108-
exit 1
107+
echo "DOCKER_PASSWORD is empty, exiting"
108+
exit 0
109109
fi
110110

111111
# Publish the image to Docker hub.

0 commit comments

Comments
 (0)