-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·60 lines (53 loc) · 1.48 KB
/
deploy.sh
File metadata and controls
executable file
·60 lines (53 loc) · 1.48 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#bin/sh
app=$1
build=$2
if [ $app == "spring" ]
then
if [[ $build == "--build" ]]
then
./mvnw clean package -f software/unicorn-store-spring/pom.xml
fi
cd infrastructure/cdk
cdk deploy UnicornStoreSpringApp --outputs-file target/output.json --require-approval never
exit 0
fi
if [ $app == "micronaut" ]
then
if [[ $build == "--build" ]]
then
./mvnw clean package -f software/alternatives/unicorn-store-micronaut/pom.xml
fi
cd infrastructure/cdk
cdk deploy UnicornStoreMicronautApp --outputs-file target/output-micronaut.json --require-approval never
exit 0
fi
if [ $app == "quarkus" ]
then
if [[ $build == "--build" ]]
then
./mvnw clean package -f software/alternatives/unicorn-store-quarkus/pom.xml
fi
cd infrastructure/cdk
cdk deploy UnicornStoreQuarkusApp --outputs-file target/output-quarkus.json --require-approval never
exit 0
fi
if [ $app == "spring-graalvm" ]
then
if [[ $build == "--build" ]]
then
./mvnw clean package -f software/alternatives/unicorn-store-spring-graalvm/pom.xml
fi
cd infrastructure/cdk
cdk deploy UnicornStoreSpringGraalVMApp --outputs-file target/output-spring-graalvm.json --require-approval never
exit 0
fi
if [ $app == "audit-service" ]
then
if [[ $build == "--build" ]]
then
./mvnw clean package -f software/alternatives/unicorn-audit-service/pom.xml
fi
cd infrastructure/cdk
cdk deploy UnicornAuditServiceApp --outputs-file target/output-audit-service.json --require-approval never
exit 0
fi