-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathbuildspec-sl.yaml
40 lines (37 loc) · 1.01 KB
/
buildspec-sl.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
27
28
29
30
31
32
33
34
35
36
37
38
39
version: 0.2
phases:
install:
commands:
- echo run install on `date`
- apt-get update
- apt-get install -y zip
pre_build:
commands:
- echo run unittests on `date`
- make test
# output all env vars
#- printenv
build:
commands:
- echo Build started on `date`
- make LIBS='bottle' LIB_DIR="$PWD/build/lib.linux-x86_64-2.7" build dist
post_build:
commands:
- echo Build completed on `date`
# for api gateway
# generate a packaged-cf-sl.yaml for deployment later
- >
aws cloudformation package --template-file cd/cf-sl.yaml
--s3-bucket ${ARTIFACTS_BUCKET_NAME} --s3-prefix ${ARTIFACTS_OBJECT_KEY}
--output-template-file cd/packaged-cf-sl.yaml
artifacts:
files:
# infra.
- cd/cf-vpc.yaml
- cd/cf-vpc-dev-configs.json
# for api gateway
- dist/api_sleep-0.1.0.zip
- dist/api_secret-0.1.0.zip
- dist/api_home-0.1.0.zip
- dist/api_healthcheck-0.1.0.zip
- cd/packaged-cf-sl.yaml