Commit eccfe8cc authored by Jure's avatar Jure

Exit the build stage if the DOCHERHUB ENV vars are not set

parent 1d5f17e4
Pipeline #3992 passed with stages
in 1 minute and 23 seconds
......@@ -16,6 +16,7 @@ build:
image: docker:latest
stage: build
script:
- if [ -z "$DOCKERHUB_USERNAME" ] && [ -z "$DOCKERHUB_PASSWORD"]; then exit 1; fi
- docker version
- docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
- echo "Ignore warning! Cannot perform an interactive login from a non TTY device"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment