Skip to content

Commit

Permalink
Deploy and release on Heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe444 committed Jan 31, 2019
1 parent 93f8a53 commit c25ed89
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,17 @@ jobs:
if: branch = master
script:
- mvn docker:build@build-docker -P docker-app -f ./judge-d-server/pom.xml
- echo "Pushing to docker registry"
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push hltech/judge-d
- echo "Pushing to heroku registry"
- docker login -u _ -p "$HEROKU_API_KEY" registry.heroku.com
- docker tag hltech/judge-d registry.heroku.com/judge-d/web
- docker push registry.heroku.com/judge-d/web
- stage: release app in heroku
if: branch = master
script:
- heroku container:release web -a judge-d
- stage: build & publish docker image for agent
if: branch = master
script:
Expand Down

0 comments on commit c25ed89

Please sign in to comment.