Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.

Commit

Permalink
Update Travis Config
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaavalon committed Jan 1, 2019
1 parent c1f0d57 commit 55f3874
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,22 @@ jobs:
- docker build --tag "${DOCKER_IMAGE_APP}:latest" app
before_deploy:
- echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
- if [ -n "$TRAVIS_TAG" ]; then docker tag "${DOCKER_IMAGE_APP}:latest" "${DOCKER_IMAGE_APP}:${$TRAVIS_TAG}"; fi
- if [ -n "$TRAVIS_TAG" ]; then docker tag "${DOCKER_IMAGE_APP}:latest" "${DOCKER_IMAGE_APP}:${TRAVIS_TAG}"; fi
deploy:
provider: script
script: docker push "${DOCKER_IMAGE_APP}:latest" && if [ -n "$TRAVIS_TAG" ]; then docker push "${DOCKER_IMAGE_APP}:${TRAVIS_TAG}"; fi
on:
branch: master
tags: true
- name: api
script:
- docker build --tag "${DOCKER_IMAGE_API}:latest" api
before_deploy:
- echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
- if [ -n "$TRAVIS_TAG" ]; then docker tag "${DOCKER_IMAGE_API}:latest" "${DOCKER_IMAGE_API}:${$TRAVIS_TAG}"; fi
- if [ -n "$TRAVIS_TAG" ]; then docker tag "${DOCKER_IMAGE_API}:latest" "${DOCKER_IMAGE_API}:${TRAVIS_TAG}"; fi
deploy:
provider: script
script: docker push "${DOCKER_IMAGE_API}:latest" && if [ -n "$TRAVIS_TAG" ]; then docker push "${DOCKER_IMAGE_API}:${TRAVIS_TAG}"; fi
on:
branch: master
tags: true

0 comments on commit 55f3874

Please sign in to comment.