Use conditional instead of inline if

This commit is contained in:
Asher 2019-09-17 15:12:47 -05:00
parent 6f08b13540
commit 53818b0e36
No known key found for this signature in database
GPG Key ID: D63C1EF81242354A
1 changed files with 2 additions and 1 deletions

View File

@ -67,10 +67,11 @@ deploy:
- provider: script
skip_cleanup: true
script: if [[ -n "$DOCKER_BUILD" ]] ; then docker push codercom/code-server:"$VERSION" && docker push codercom/code-server:v2 ; fi
script: docker push codercom/code-server:"$VERSION" ; docker push codercom/code-server:v2
on:
repo: cdr/code-server
branch: master
condition: -n "$DOCKER_BUILD"
cache:
yarn: true