-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (33 loc) · 1.54 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
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:
- docker --version # print the version for logging
- docker build ./backend/orders-microservice -t e-commerce-orders
- docker build ./backend/products-microservice -t e-commerce-products
- docker build ./backend/users-microservice -t e-commerce-users
- docker build ./backend/reverseproxy-microservice -t e-commerce-reverseproxy
- docker build ./frontend -t e-commerce-frontend
- docker tag e-commerce-orders abdallahelshamy/e-commerce-orders:latest
- docker tag e-commerce-products abdallahelshamy/e-commerce-products:latest
- docker tag e-commerce-users abdallahelshamy/e-commerce-users:latest
- docker tag e-commerce-reverseproxy abdallahelshamy/e-commerce-reverseproxy:latest
- docker tag e-commerce-frontend abdallahelshamy/e-commerce-frontend:latest
# Tasks to perform after the process is successful. Formatting the Docker
# username and password as below enables you to programmatically log in without
# having the password exposed in logs.
after_success:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker push abdallahelshamy/e-commerce-orders
- docker push abdallahelshamy/e-commerce-products
- docker push abdallahelshamy/e-commerce-users
- docker push abdallahelshamy/e-commerce-reverseproxy
- docker push abdallahelshamy/e-commerce-frontend