Skip to content

Commit 9f7fc60

Browse files
chore: 🤖 correct build and push sytax
1 parent 2b49570 commit 9f7fc60

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

‎.travis.yml‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ jobs:
1515
- stage: "Build Docker Image"
1616
name: "Build and Push docker image"
1717
script: |
18-
# echo "$TRAVIS_TAG"
19-
echo "$TRAVIS_BRANCH"
20-
docker build -t jaskaransarkaria/timer-server:"$TRAVIS_BRANCH" .
18+
docker build -t timer-server:"$TRAVIS_TAG" .
2119
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
22-
docker push jaskaransarkaria/timer-server:"$TRAVIS_BRANCH"
20+
docker push jaskaransarkaria/timer-server:"$TRAVIS_TAG"
2321
2422
stages:
2523
- Tests and Linting

0 commit comments

Comments
 (0)