Skip to content

Commit

Permalink
Do not try to push images from fork builds. (#204)
Browse files Browse the repository at this point in the history
* Do not try to push images from fork builds.

* Update .circleci/config.yml
  • Loading branch information
jankaspar authored Oct 24, 2019
1 parent fce1394 commit 1acd5ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ jobs:
name: Push Image
command: |
if [ -z "${DOCKERHUB_USER}" ]
then
echo "Do not push image inside fork."
exit 0
fi
TAG=${CIRCLE_SHA1}
if [ ${CIRCLE_BRANCH} != master ]
Expand Down

0 comments on commit 1acd5ef

Please sign in to comment.