-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yml
48 lines (45 loc) · 1.52 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
version: 0.2
env:
variables:
STAGE: devsample
DOMAIN_PREFIX: deaplayground
DEA_API_URL: dummyApiUrl
IDENTITY_POOL_ID: dummyIdentityPoolId
USER_POOL_ID: dummyUserPoolId
USER_POOL_CLIENT_ID: dummyUserPoolClientId
DATASETS_BUCKET_NAME: dummyDatasetsBucket
phases:
install:
runtime-versions:
nodejs: 18
python: 3.11
commands:
- echo "nothing to do in install"
pre_build:
commands:
- echo "Installing dependencies and executing unit tests - `pwd`"
- cd deployment && chmod +x ./run-unit-tests.sh && ./run-unit-tests.sh
- echo "Installing dependencies and executing unit tests completed `date`"
build:
commands:
- echo "Starting build `date` in `pwd`"
- chmod +x ./build-s3-dist.sh && ./build-s3-dist.sh $DIST_OUTPUT_BUCKET $SOLUTION_NAME $VERSION
- echo "Build completed `date`"
- echo "Starting open-source-dist `date` in `pwd`"
- chmod +x ./build-open-source-dist.sh && ./build-open-source-dist.sh $SOLUTION_NAME
- echo "Open Source Dist completed `date`"
post_build:
commands:
- echo "Retrieving next stage buildspec `date` in `pwd`"
- aws s3 cp s3://${SOLUTIONS_BUILD_ASSETS_BUCKET:-solutions-build-assets}/changelog-spec.yml ../buildspec.yml
- echo "Retrieving next stage buildspec complete"
- echo "Post build completed on `date`"
artifacts:
files:
- deployment/**/*
- source/**/*
- .gitignore
- sonar-project.properties
- buildspec.yml
- CHANGELOG.md
- .cfnnag_*