Skip to content

Commit

Permalink
ci: 🎡 docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jaskaransarkaria committed Jun 23, 2020
1 parent e9e2ede commit 5cd540e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5cd540e

Please sign in to comment.