Skip to content

Commit

Permalink
Don't push docker images on forks. (grafana#111)
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Wilkie <[email protected]>
  • Loading branch information
tomwilkie authored Dec 14, 2018
1 parent 6145da1 commit 61db567
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ workflows:
- test
- build
- lint
filters:
branches:
only: master
- publish-master:
requires:
- test
Expand Down Expand Up @@ -103,8 +106,10 @@ jobs:
- run:
name: Push Images
command: |
docker login -u "$DOCKER_USER" -p "$DOCKER_PASS" &&
make push-images
if [ -n "$DOCKER_USER" ]; then
docker login -u "$DOCKER_USER" -p "$DOCKER_PASS" &&
make push-images
fi
publish-master:
<<: *defaults
Expand Down

0 comments on commit 61db567

Please sign in to comment.