aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2017-09-12 05:35:58 +0000
committerLusheng Ji <lji@research.att.com>2017-09-12 05:36:18 +0000
commit72725a2d9e1f23f74d2e0c4343e38b92fb68916f (patch)
tree04a64933b0dd727110cb09a5ed1b41432e1c11c0
parent27ed06c2d69596e41f4523483d154a322c0641b7 (diff)
Add docker build step
Issue-Id: DCAEGEN2-60 Change-Id: I1a2f2ebf74fb25b6f4d39614da3f31075d040df5 Signed-off-by: Lusheng Ji <lji@research.att.com>
-rwxr-xr-xmvn-phase-script.sh45
1 files changed, 2 insertions, 43 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh
index 2a8d11ed..309e8411 100755
--- a/mvn-phase-script.sh
+++ b/mvn-phase-script.sh
@@ -113,50 +113,9 @@ install)
;;
deploy)
echo "==> deploy phase script"
- # below segments are example of how to deploy various artifacts
- # copy the ones suitable for your repo, and remove the "if false" statement
-
# build docker image from Docker file (under root of repo) and push to registry
- if false ; then
- build_and_push_docker
- fi
-
- # upload all yaml file under the root of repo
- if false ; then
- upload_files_of_extension yaml
- fi
-
- if false ; then
- case $MVN_PROJECT_MODULEID in
- bootstrap)
- # build docker image from Docker file (under module dir) and push to registry
- build_and_push_docker
- ;;
- scripts)
- # upload all sh file under the root of module
- upload_files_of_extension sh
- ;;
- platformdoc)
- CURDIR=$(pwd)
- virtualenv ./venv-doc
- source ./venv-doc/bin/activate
- pip install --upgrade pip
- pip install --upgrade mkdocs mkdocs-material
- pip freeze
-
- mkdocs build
- build_and_push_docker
- deactivate
- rm -rf ./venv-doc
-
- # build docker image from Docker file (under module dir) and push to registry
- build_and_push_docker
- ;;
- *)
- echo "====> unknown mvn project module"
- ;;
- esac
- fi
+ build_and_push_docker
+
;;
*)
echo "==> unprocessed phase"