Don't use a sequence for Docker deploy
Travis deploy scripts can't be sequences yet.
This commit is contained in:
parent
4733c31a2f
commit
1252eb6a8a
@ -46,6 +46,7 @@ before_deploy:
|
|||||||
- git config --local user.name "$USER_NAME"
|
- git config --local user.name "$USER_NAME"
|
||||||
- git config --local user.email "$USER_EMAIL"
|
- git config --local user.email "$USER_EMAIL"
|
||||||
- if ! git tag "$TAG" "$TRAVIS_COMMIT" ; then echo "$TAG already exists"; fi
|
- if ! git tag "$TAG" "$TRAVIS_COMMIT" ; then echo "$TAG already exists"; fi
|
||||||
|
- if [[ "$DOCKER_BUILD" == "true" ]] ; then echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin hub.docker.com; fi
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
- provider: releases
|
- provider: releases
|
||||||
@ -66,14 +67,11 @@ deploy:
|
|||||||
|
|
||||||
- provider: script
|
- provider: script
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
script:
|
script: docker push codercom/code-server:"$VERSION" ; docker push codercom/code-server:v2
|
||||||
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin hub.docker.com
|
|
||||||
- docker push codercom/code-server:"$VERSION"
|
|
||||||
- docker push codercom/code-server:v2
|
|
||||||
on:
|
on:
|
||||||
repo: cdr/code-server
|
repo: cdr/code-server
|
||||||
branch: master
|
branch: master
|
||||||
condition: "$DOCKER_BUILD"
|
condition: "$DOCKER_BUILD" == "true"
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
yarn: true
|
yarn: true
|
||||||
|
Reference in New Issue
Block a user