-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildspec.yml
32 lines (32 loc) · 1.05 KB
/
buildspec.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
version: 0.2
phases:
pre_build:
commands:
- echo Login to Amazon ECR
- $(aws ecr get-login --no-include-email --region eu-central-1)
finally:
- echo Couldnt login
build:
commands:
- echo Building images
- docker build -t media-director Media_director
- docker tag media-director:latest $ECR_HOST/media-director:latest
- docker build -t rasa-actions Rasa_actions
- docker tag rasa-actions:latest $ECR_HOST/rasa-actions:latest
- docker build -t rasa-core Rasa_core
- docker tag rasa-core:latest $ECR_HOST/rasa-core:latest
- docker push $ECR_HOST/rasa-core:latest
finally:
- echo Couldnt build
post_build:
commands:
- echo Entered the post_build phase...
- docker push $ECR_HOST/media-director:latest
- docker push $ECR_HOST/rasa-actions:latest
- docker push $ECR_HOST/rasa-core:latest
- echo Build completed on `date`
artifacts:
files:
- imagedefinitions_director.json
- imagedefinitions_core.json
- imagedefinitions_actions.json