Skip to content

Commit

Permalink
Only sign in to dockerhub if we intend to push images (#867)
Browse files Browse the repository at this point in the history
Only log in dockerhub if we intend to push
  • Loading branch information
Janpot authored Aug 29, 2022
1 parent a39964e commit 6572074
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,6 @@ jobs:
steps:
- checkout

# login docker hub
- run: |
echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin
# build the application image
- run: |
docker build \
Expand Down Expand Up @@ -186,6 +182,10 @@ jobs:
condition:
equal: [master, << pipeline.git.branch >>]
steps:
# login docker hub
- run: |
echo "$DOCKER_PASS" | docker login --username $DOCKER_USER --password-stdin
- run: |
docker push muicom/toolpad:$CIRCLE_SHA1
docker tag muicom/toolpad:$CIRCLE_SHA1 muicom/toolpad:alpha
Expand Down

0 comments on commit 6572074

Please sign in to comment.