We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6fe452 commit 5cda9beCopy full SHA for 5cda9be
dev/docker.sh
@@ -55,14 +55,14 @@ echo "Running the image in container"
55
docker run -d $IMAGE
56
docker ps -a
57
58
-# Travis can only work on master since it needs encrypted variables.
59
-if [ "${OPENGROK_PULL_REQUEST}" != "false" ]; then
+# This can only work on home repository since it needs encrypted variables.
+if [[ -n "$OPENGROK_PULL_REQUEST" ]]; then
60
echo "Not pushing Docker image for pull requests"
61
exit 0
62
fi
63
64
# The push only works on the main repository.
65
-if [[ "${OPENGROK_REPO_SLUG}" != "oracle/opengrok" ]]; then
+if [[ "$OPENGROK_REPO_SLUG" != "oracle/opengrok" ]]; then
66
echo "Not pushing Docker image for non main repository"
67
68
0 commit comments