-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yaml
30 lines (21 loc) · 1.25 KB
/
buildspec.yaml
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
version: 0.2
phases:
pre_build:
commands:
- aws ecr get-login-password --region ap-south-1 | docker login --username AWS --password-stdin 905418098172.dkr.ecr.ap-south-1.amazonaws.com
build:
commands:
- docker build -t reservations -f ./apps/reservations/Dockerfile .
- docker tag reservations:latest 905418098172.dkr.ecr.ap-south-1.amazonaws.com/reservations:latest
- docker build -t auth -f ./apps/auth/Dockerfile .
- docker tag auth:latest 905418098172.dkr.ecr.ap-south-1.amazonaws.com/auth:latest
- docker build -t payments -f ./apps/payments/Dockerfile .
- docker tag payments:latest 905418098172.dkr.ecr.ap-south-1.amazonaws.com/payments:latest
- docker build -t notifications -f ./apps/notifications/Dockerfile .
- docker tag notifications:latest 905418098172.dkr.ecr.ap-south-1.amazonaws.com/notifications:latest
post_build:
commands:
- docker push 905418098172.dkr.ecr.ap-south-1.amazonaws.com/reservations:latest
- docker push 905418098172.dkr.ecr.ap-south-1.amazonaws.com/auth:latest
- docker push 905418098172.dkr.ecr.ap-south-1.amazonaws.com/payments:latest
- docker push 905418098172.dkr.ecr.ap-south-1.amazonaws.com/notifications:latest