Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1252eb6

Browse files
committedSep 17, 2019
Don't use a sequence for Docker deploy
Travis deploy scripts can't be sequences yet.
1 parent 4733c31 commit 1252eb6

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed
 

‎.travis.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ before_deploy:
4646
- git config --local user.name "$USER_NAME"
4747
- git config --local user.email "$USER_EMAIL"
4848
- if ! git tag "$TAG" "$TRAVIS_COMMIT" ; then echo "$TAG already exists"; fi
49+
- if [[ "$DOCKER_BUILD" == "true" ]] ; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin hub.docker.com; fi
4950

5051
deploy:
5152
- provider: releases
@@ -66,14 +67,11 @@ deploy:
6667

6768
- provider: script
6869
skip_cleanup: true
69-
script:
70-
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin hub.docker.com
71-
- docker push codercom/code-server:"$VERSION"
72-
- docker push codercom/code-server:v2
70+
script: docker push codercom/code-server:"$VERSION" ; docker push codercom/code-server:v2
7371
on:
7472
repo: cdr/code-server
7573
branch: master
76-
condition: "$DOCKER_BUILD"
74+
condition: "$DOCKER_BUILD" == "true"
7775

7876
cache:
7977
yarn: true

0 commit comments

Comments
 (0)
Please sign in to comment.