File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -13,16 +13,13 @@ jobs:
1313 name : " Unit Tests"
1414 script : go test -v ./...
1515 - stage : " Build Docker Image"
16- name : " Build docker image"
17- script : docker build -t jaskaransarkaria/timer-server:"${TRAVIS_TAG}" .
18- - stage :
19- name : " Push Docker Image"
16+ name : " Build and Push docker image"
2017 script : |
18+ docker build -t jaskaransarkaria/timer-server:"$TRAVIS_TAG" .
2119 echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
22- docker push jaskaransarkaria/timer-server:"${ TRAVIS_TAG} "
20+ docker push jaskaransarkaria/timer-server:"$TRAVIS_TAG"
2321
2422stages :
2523 - Tests and Linting
26- - name : " Build Docker Image"
24+ - name : " Build and Push Docker Image"
2725 if : tag IS present
28- - " Push Docker Image"
You can’t perform that action at this time.
0 commit comments