Skip to content

Commit 53818b0

Browse files
committed
Use conditional instead of inline if
1 parent 6f08b13 commit 53818b0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,11 @@ deploy:
6767

6868
- provider: script
6969
skip_cleanup: true
70-
script: if [[ -n "$DOCKER_BUILD" ]] ; then docker push codercom/code-server:"$VERSION" && docker push codercom/code-server:v2 ; fi
70+
script: docker push codercom/code-server:"$VERSION" ; docker push codercom/code-server:v2
7171
on:
7272
repo: cdr/code-server
7373
branch: master
74+
condition: -n "$DOCKER_BUILD"
7475

7576
cache:
7677
yarn: true

0 commit comments

Comments
 (0)