From 446eb683ab8d9275764b913b0a0549b141fb36ad Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Sun, 9 Dec 2018 19:12:54 +0100 Subject: [PATCH] Tag with build number since we're not versioning this --- .travis.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3d3d3c7..40ac718 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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