From 5cd540e6c4279ecfdb24aa43e068a9517a16d751 Mon Sep 17 00:00:00 2001 From: jaskaran Date: Tue, 23 Jun 2020 20:23:33 +0100 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 3291db3..350b78b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,14 +15,13 @@ jobs: - stage: "Build and Push Docker Image" name: "Build and Push Docker Image" script: - - docker build -t jaskaransarkaria/timer-server:test . - - echo "$DOCKER_USERNAME" + - docker build -t jaskaransarkaria/timer-server:"$TRAVIS_TAG" . - echo "$DOCKER_PASSWORD" - echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin - - docker push jaskaransarkaria/timer-server:test + - docker push jaskaransarkaria/timer-server:"$TRAVIS_TAG" # next step is to deploy to kubernetes stages: - Tests and Linting - name: "Build and Push Docker Image" - # if: tag IS present + if: tag IS present