forked from mzucchelli/cloud-final
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
34 lines (23 loc) · 1.09 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
dist: focal
language: minimal
services: docker
env:
- DOCKER_COMPOSE_VERSION=v2.23.0
before_install:
- docker -v && docker-compose -v
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
- chmod +x ./kubectl
- sudo mv ./kubectl /usr/local/bin/kubectl
install:
- docker-compose -f deployment/docker/docker-compose-build-prod.yaml build --parallel
- docker tag mzucc/tracker-backend mzucc/tracker-backend:build-$TRAVIS_BUILD_NUMBER
- docker tag mzucc/tracker-frontend mzucc/tracker-frontend:build-$TRAVIS_BUILD_NUMBER
after_success:
- docker image ls
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push -a mzucc/tracker-backend
- docker push -a mzucc/tracker-frontend