forked from udacity/cd0354-monolith-to-microservices-project
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
29 lines (22 loc) · 902 Bytes
/
.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
language: node_js
node_js:
- 12
services:
- docker
before_install: []
install:
- sudo apt-get install awscli
- mkdir ${HOME}/.aws
before_script: []
script:
- docker --version
- docker build -f udagram-api-feed/Dockerfile -t foxcoder508/udagram-api-feed:v4 udagram-api-feed
- docker build -f udagram-api-user/Dockerfile -t foxcoder508/udagram-api-user:v4 udagram-api-user
- docker build -f udagram-frontend/Dockerfile -t foxcoder508/udagram-frontend:v5 udagram-frontend
- docker build -f udagram-reverseproxy/Dockerfile -t foxcoder508/udagram-reverseproxy:v4 udagram-reverseproxy
after_success:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push foxcoder508/udagram-api-feed:v4
- docker push foxcoder508/udagram-api-user:v4
- docker push foxcoder508/udagram-frontend:v5
- docker push foxcoder508/udagram-reverseproxy:v4