-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
25 lines (25 loc) · 848 Bytes
/
buildspec.yml
File metadata and controls
25 lines (25 loc) · 848 Bytes
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
version: 0.2
env:
variables:
PRX_SPIRE_S3_PKG_PARAMETERS: LAMBDA_ZIP=/prx/stag/Spire/S3_Signing_Service/pkg/s3-object-key
AWS_REGION: us-east-1
parameter-store:
ACCESS_KEY: /prx/testing/upload.prx.org/access-key
DOCKERHUB_USERNAME: /prx/DOCKERHUB_USERNAME
DOCKERHUB_PASSWORD: /prx/DOCKERHUB_PASSWORD
exported-variables:
- PRX_SPIRE_S3_PKG_PARAMETERS
- LAMBDA_ZIP
phases:
pre_build:
commands:
- echo Logging in to Docker Hub...
- echo $DOCKERHUB_PASSWORD | docker login --username $DOCKERHUB_USERNAME --password-stdin
build:
commands:
- docker build --build-arg AWS_REGION --build-arg ACCESS_KEY .
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