summaryrefslogtreecommitdiffstats
path: root/mvn-phase-script.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mvn-phase-script.sh')
-rwxr-xr-xmvn-phase-script.sh15
1 files changed, 13 insertions, 2 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh
index 309e8411..9603bb4d 100755
--- a/mvn-phase-script.sh
+++ b/mvn-phase-script.sh
@@ -28,6 +28,10 @@ MVN_PHASE="$2"
PROJECT_ROOT=$(dirname $0)
+if [ -z "$WORKSPACE" ]; then
+ export WORKSPACE="$PROJECT_ROOT"
+fi
+
FQDN="${MVN_PROJECT_GROUPID}.${MVN_PROJECT_ARTIFACTID}"
if [ "$MVN_PROJECT_MODULEID" == "__" ]; then
@@ -114,8 +118,15 @@ install)
deploy)
echo "==> deploy phase script"
# build docker image from Docker file (under root of repo) and push to registry
- build_and_push_docker
-
+ #build_and_push_docker
+ case $MVN_DEPLOYMENT_TYPE in
+ SNAPSHOT)
+ bash docker-build.sh merge
+ ;;
+ STAGING)
+ bash docker-build.sh release
+ ;;
+ esac
;;
*)
echo "==> unprocessed phase"