Skip to content

Commit

Permalink
create image for dss (Yelp#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
XIANJUN ZHU authored and justineyster committed Jun 24, 2020
1 parent dc91a12 commit 6d8a307
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:
- DOCKER_IMAGE_HOST=txo-whitewater-public-docker-local.artifactory.swg-devops.com
- DOCKER_IMAGE=txo-whitewater-public-docker-local.artifactory.swg-devops.com/whitewater-detect-secrets
- DOCKER_IMAGE_TAG="$TRAVIS_BUILD_NUMBER-id-$TRAVIS_BUILD_ID-time-$(date +%s)"
- DOCKER_IMAGE_TAG_MVP="$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER-id-$TRAVIS_BUILD_ID-time-$(date +%s)"
- DOCKER_IMAGE_TAG_DSS="$TRAVIS_BRANCH-$TRAVIS_BUILD_NUMBER-id-$TRAVIS_BUILD_ID-time-$(date +%s)"
deploy:
- provider: script
script: docker login $DOCKER_IMAGE_HOST --username $DOCKER_USER --password $DOCKER_PASS
Expand All @@ -18,12 +18,12 @@ deploy:
branch: master
- provider: script
script: docker login $DOCKER_IMAGE_HOST --username $DOCKER_USER --password $DOCKER_PASS
&& docker tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG $DOCKER_IMAGE:$DOCKER_IMAGE_TAG_MVP
&& docker push $DOCKER_IMAGE:$DOCKER_IMAGE_TAG_MVP
&& docker tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG_MVP $DOCKER_IMAGE:mvp-latest
&& docker push $DOCKER_IMAGE:mvp-latest
&& docker tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG $DOCKER_IMAGE:$DOCKER_IMAGE_TAG_DSS
&& docker push $DOCKER_IMAGE:$DOCKER_IMAGE_TAG_DSS
&& docker tag $DOCKER_IMAGE:$DOCKER_IMAGE_TAG_DSS $DOCKER_IMAGE:dss-latest
&& docker push $DOCKER_IMAGE:dss-latest
on:
branch: mvp
branch: dss
matrix:
include:
- env: TOXENV=py27
Expand Down

0 comments on commit 6d8a307

Please sign in to comment.