-
Notifications
You must be signed in to change notification settings - Fork 0
/
beta-buildspec.yml
46 lines (42 loc) · 1.41 KB
/
beta-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
version: 0.2
phases:
install:
runtime-versions:
python: 3.7
java: corretto8
commands:
- echo Entered the install phase...
- echo About to build $RESOURCE_PATH
- export PATH="/usr/local/bin:$PATH"
- /usr/local/bin/dockerd-entrypoint.sh
- cat /var/log/docker.log
- echo java version
- java -version
- pwd
- ls
build:
commands:
- echo Entered the build phase...
- mvn package -DskipTests
- cd $RESOURCE_PATH
- TYPE_NAME=$(cat .rpdk-config | jq -r .typeName)
- ./setup.sh
- cfn validate
- cfn generate
- cd ..
- mvn package -DskipTests
- cd $RESOURCE_PATH
- cfn submit --set-default
- python ../get_type_configuration.py
- aws cloudformation set-type-configuration --type RESOURCE --type-name $TYPE_NAME --configuration-alias default --configuration $(cat /root/.cfn-cli/typeConfiguration.json| jq -c "")
- INTEG_STACK_NAME="integ-$(echo $RESOURCE_PATH | tr '[:upper:]' '[:lower:]')"
- aws cloudformation create-stack --stack-name $INTEG_STACK_NAME --template-body file://test/integ.yml
- aws cloudformation wait stack-create-complete --stack-name $INTEG_STACK_NAME
finally:
- cat rpdk.log
- aws cloudformation delete-stack --stack-name $INTEG_STACK_NAME
- ./cleanup.sh
artifacts:
files:
- $BUILD_FILE_NAME
name: extensions-build