Tag with build number since we're not versioning this
This commit is contained in:
parent
6af12d23bd
commit
446eb683ab
1 changed files with 2 additions and 6 deletions
|
@ -6,16 +6,12 @@ services:
|
||||||
before_script:
|
before_script:
|
||||||
- npm run build
|
- npm run build
|
||||||
- docker build -t cbase/infoscreens:latest .
|
- docker build -t cbase/infoscreens:latest .
|
||||||
|
- docker tag cbase/infoscreens:latest "cbase/infoscreens:${TRAVIS_BUILD_NUMBER}"
|
||||||
- docker-compose up -d
|
- docker-compose up -d
|
||||||
- docker-compose ps
|
- docker-compose ps
|
||||||
deploy:
|
deploy:
|
||||||
- provider: script
|
- provider: script
|
||||||
script: docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker tag cbase/infoscreens:latest "cbase/infoscreens:${TRAVIS_TAG}" && docker push "cbase/infoscreens:${TRAVIS_TAG}"
|
script: docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker push "cbase/infoscreens:latest" && docker push "cbase/infoscreens:${TRAVIS_BUILD_NUMBER}"
|
||||||
on:
|
|
||||||
tags: true
|
|
||||||
repo: c-base/infoscreens
|
|
||||||
- provider: script
|
|
||||||
script: docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker push "cbase/infoscreens:latest"
|
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: master
|
||||||
repo: c-base/infoscreens
|
repo: c-base/infoscreens
|
||||||
|
|
Loading…
Reference in a new issue