-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
48 lines (43 loc) · 1.69 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: node_js
node_js:
- 13
services:
- docker
# Pre-testing installs
install:
- echo "nothing needs to be installed"
# Scripts to be run such as tests
before_script:
- echo "no tests"
script:
# Build udagram-api-feed
- cd $TRAVIS_BUILD_DIR/udagram-api-feed
- docker --version # print the version for logging
- docker build -t udagram-api-feed .
- docker tag udagram-api-feed eamonnh/udagram-api-feed:latest
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push eamonnh/udagram-api-feed
# Build udagram-api-user
- cd $TRAVIS_BUILD_DIR/udagram-api-user
- docker --version # print the version for logging
- docker build -t udagram-api-user .
- docker tag udagram-api-user eamonnh/udagram-api-user:latest
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push eamonnh/udagram-api-user
# Build udagram-reverse-proxy
- cd $TRAVIS_BUILD_DIR/udagram-reverse-proxy
- docker --version # print the version for logging
- docker build -t udagram-reverse-proxy .
- docker tag udagram-reverse-proxy eamonnh/udagram-reverse-proxy:latest
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push eamonnh/udagram-reverse-proxy
# Build udagram-frontend
- cd $TRAVIS_BUILD_DIR/udagram-frontend
- docker --version # print the version for logging
- docker build -t udagram-frontend .
- docker tag udagram-frontend eamonnh/udagram-frontend:latest
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push eamonnh/udagram-frontend
# Tasks to perform after the process is successful.
after_success:
- echo "Build completed"