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