-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildspec.yaml
34 lines (32 loc) · 993 Bytes
/
buildspec.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
version: 0.2
#env:
#variables:
# key: "value"
# key: "value"
#parameter-store:
# key: "value"
# key: "value"
phases:
install:
runtime-versions:
java: corretto8
pre_build:
commands:
- apt-get update
- apt-get install -y jq
- wget https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.5.4/apache-maven-3.5.4-bin.tar.gz
- tar xzf apache-maven-3.5.4-bin.tar.gz
- ln -s apache-maven-3.5.4 maven
- sed -i 's/jdbc.password=admin123/jdbc.password=1VhFpqrLA831J513xpFW/' src/main/resources/application.properties
- sed -i 's/jdbc.username=admin/jdbc.username=admin/' src/main/resources/application.properties
- sed -i 's/db01:3306/pipeline-database.c5su22eeued6.us-east-1.rds.amazonaws.com:3306/' src/main/resources/application.properties
build:
commands:
- mvn install
post_build:
commands:
- mvn package
artifacts:
files:
- '**/*.war'
base-directory: 'target'