-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·31 lines (21 loc) · 826 Bytes
/
deploy.sh
File metadata and controls
executable file
·31 lines (21 loc) · 826 Bytes
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
#!/usr/bin/env bash
set -e # Exits immediately if a command exits with a non-zero status.
if [ "$1" == "build" ]; then
mvn clean install -DskipTests
elif [ "$1" == "docker-build" ]; then
mvn -f identity-service/pom.xml docker:build
elif [ "$1" == "docker-push" ]; then
mvn -f identity-service/pom.xml docker:push
elif [ "$1" == "stage" ]; then
mvn clean install -DskipTests
mvn -f identity-service/pom.xml docker:build -DdockerImageTag=staging
mvn -f identity-service/pom.xml docker:push -DdockerImageTag=staging
elif [ "$1" == "dev-startdb" ]; then
# -v /tmp/postgres:/var/lib/postgresql/data \
docker run \
--name identityDB \
-p 5433:5432 \
-e POSTGRES_PASSWORD=changeme \
-e POSTGRES_USER=root \
-e POSTGRES_DB=identityDB postgres
fi