Skip to content

Commit

Permalink
debug travis building releases
Browse files Browse the repository at this point in the history
  • Loading branch information
startxfr committed Mar 25, 2018
1 parent 6358f0c commit c092dd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ before_install:
- docker pull node:8-alpine
- docker images
- docker login -u $DOCKER_USER -p $DOCKER_PASS
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; elif [ "$TRAVIS_BRANCH" == "testing" ]; then echo "testing"; else echo $RELEASE ; fi`

script:
- "docker build --squash -t $REPO ."
- "docker run -d --name sxapi $REPO"
- "docker build --squash -t $REPO:$TAG ."
- "docker run -d --name sxapi $REPO:$TAG"

after_success:
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; elif [ "$TRAVIS_BRANCH" == "testing" ]; then echo "testing"; else echo $RELEASE ; fi`
- docker push $REPO
- docker push $REPO:$TAG

0 comments on commit c092dd0

Please sign in to comment.