Tag with build number since we're not versioning this

This commit is contained in:
Henri Bergius 2018-12-09 19:12:54 +01:00
parent 6af12d23bd
commit 446eb683ab

View file

@ -6,16 +6,12 @@ services:
before_script:
- npm run build
- docker build -t cbase/infoscreens:latest .
- docker tag cbase/infoscreens:latest "cbase/infoscreens:${TRAVIS_BUILD_NUMBER}"
- docker-compose up -d
- docker-compose ps
deploy:
- 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}"
on:
tags: true
repo: c-base/infoscreens
- provider: script
script: docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker push "cbase/infoscreens:latest"
script: docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" && docker push "cbase/infoscreens:latest" && docker push "cbase/infoscreens:${TRAVIS_BUILD_NUMBER}"
on:
branch: master
repo: c-base/infoscreens