File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ jobs:
127127 key : v7-prod-build-cache-{{ .Environment.CIRCLE_BRANCH }}-{{ .Environment.CIRCLE_SHA1 }}
128128 - run :
129129 name : Docker Sign In
130- command : echo $DOCKER_PWD | docker login -u $DOCKER_USER --password-stdin
130+ command : " [[ -n $DOCKER_USER ]] && echo $DOCKER_PWD | docker login -u $DOCKER_USER --password-stdin"
131131 - run :
132132 name : Create Dockerfile
133133 command : |
@@ -141,7 +141,7 @@ jobs:
141141 command : docker build -t codesandbox/client:${CIRCLE_SHA1:0:7} .
142142 - deploy :
143143 name : Push Image
144- command : docker push codesandbox/client:${CIRCLE_SHA1:0:7}
144+ command : " [[ -n $DOCKER_USER ]] && docker push codesandbox/client:${CIRCLE_SHA1:0:7}"
145145
146146workflows :
147147 version : 2
You can’t perform that action at this time.
0 commit comments