-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
34 lines (32 loc) · 981 Bytes
/
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
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://downloads.apache.org/maven/maven-3/3.9.3/binaries/apache-maven-3.9.3-bin.tar.gz
- tar xzf apache-maven-3.9.3-bin.tar.gz
- ln -s apache-maven-3.9.3 maven
- sed -i 's/jdbc.password=admin123/jdbc.password=puJ473sskgtsWRmtCLUy/' src/main/resources/application.properties
- sed -i 's/jdbc.username=admin/jdbc.username=admin/' src/main/resources/application.properties
- sed -i 's/db01:3306/vprofile-db.ckvgb0jwqnod.ap-south-1.rds.amazonaws.com:3306/' src/main/resources/application.properties
build:
commands:
- mvn install
post_build:
commands:
- mvn package
artifacts:
files:
- '**/*'
base-directory: 'target/vprofile-v2'