-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
28 lines (28 loc) · 944 Bytes
/
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
version: 0.2
env:
variables:
PRX_ECR_CONFIG_PARAMETERS: "FeederEcrImageTag"
PRX_SPIRE_ECR_PKG_PARAMETERS: RAILS_APP=/prx/stag/Spire/Dovetail-Feeder/pkg/docker-image-tag
PRX_CI_PRERELEASE: "true"
parameter-store:
DOCKERHUB_USERNAME: /prx/DOCKERHUB_USERNAME
DOCKERHUB_PASSWORD: /prx/DOCKERHUB_PASSWORD
exported-variables:
- PRX_ECR_CONFIG_PARAMETERS
- PRX_ECR_IMAGE
- PRX_SPIRE_ECR_PKG_PARAMETERS
- RAILS_APP
phases:
pre_build:
commands:
- echo Logging in to Docker Hub...
- echo $DOCKERHUB_PASSWORD | docker login --username $DOCKERHUB_USERNAME --password-stdin
build:
commands:
- docker-compose -f docker-compose-ci.yml build
- docker-compose -f docker-compose-ci.yml run feeder
post_build:
commands:
- curl -sO "https://raw.githubusercontent.com/PRX/Infrastructure/main/ci/utility/post_build.sh"
- chmod +x post_build.sh
- . ./post_build.sh