generated from AdamBien/aws-quarkus-lambda-cdk-plain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
20 lines (20 loc) · 723 Bytes
/
buildspec.yml
File metadata and controls
20 lines (20 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-syntax
version: 0.2
phases:
install:
commands:
- echo "build started by ${CODEBUILD_INITIATOR}"
- echo "running on:"
- java -version
- mvn -version
- npm --version
- npm install -g aws-cdk
- cdk --version
build:
commands:
- echo "building AWS Lambda"
- cd ${CODEBUILD_SRC_DIR}/lambda && mvn --no-transfer-progress -DskipTests package
- echo "building cdk"
- cd ${CODEBUILD_SRC_DIR}/cdk && mvn --no-transfer-progress -DskipTests package
- echo "deploying application"
- cd ${CODEBUILD_SRC_DIR}/cdk && cdk deploy --all --require-approval=never