-
Notifications
You must be signed in to change notification settings - Fork 267
/
Copy pathtravis_docker_push.sh
53 lines (45 loc) · 2.14 KB
/
travis_docker_push.sh
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
49
50
51
52
53
#!/bin/bash
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
# configuration
cd ./bookstore-microservices-platform-configuration/
docker build -t bookstore-springcloud:platform-configuration .
docker tag bookstore-springcloud:platform-configuration $DOCKER_USERNAME/bookstore-springcloud:platform-configuration
cd ..
# registry
cd ./bookstore-microservices-platform-registry/
docker build -t bookstore-springcloud:platform-registry .
docker tag bookstore-springcloud:platform-registry $DOCKER_USERNAME/bookstore-springcloud:platform-registry
cd ..
# gateway
cd ./bookstore-microservices-platform-gateway/
docker build -t bookstore-springcloud:platform-gateway .
docker tag bookstore-springcloud:platform-gateway $DOCKER_USERNAME/bookstore-springcloud:platform-gateway
cd ..
# security
cd ./bookstore-microservices-domain-security/
docker build -t bookstore-springcloud:domain-security .
docker tag bookstore-springcloud:domain-security $DOCKER_USERNAME/bookstore-springcloud:domain-security
cd ..
# account
cd ./bookstore-microservices-domain-account/
docker build -t bookstore-springcloud:domain-account .
docker tag bookstore-springcloud:domain-account $DOCKER_USERNAME/bookstore-springcloud:domain-account
cd ..
# warehouse
cd ./bookstore-microservices-domain-warehouse/
docker build -t bookstore-springcloud:domain-warehouse .
docker tag bookstore-springcloud:domain-warehouse $DOCKER_USERNAME/bookstore-springcloud:domain-warehouse
cd ..
# payment
cd ./bookstore-microservices-domain-payment/
docker build -t bookstore-springcloud:domain-payment .
docker tag bookstore-springcloud:domain-payment $DOCKER_USERNAME/bookstore-springcloud:domain-payment
cd ..
docker images
docker push $DOCKER_USERNAME/bookstore-springcloud:platform-configuration
docker push $DOCKER_USERNAME/bookstore-springcloud:platform-registry
docker push $DOCKER_USERNAME/bookstore-springcloud:platform-gateway
docker push $DOCKER_USERNAME/bookstore-springcloud:domain-security
docker push $DOCKER_USERNAME/bookstore-springcloud:domain-account
docker push $DOCKER_USERNAME/bookstore-springcloud:domain-warehouse
docker push $DOCKER_USERNAME/bookstore-springcloud:domain-payment