From 65c113913f104ec91d901b258bae4e11a24689f1 Mon Sep 17 00:00:00 2001 From: Manuel Friedli Date: Mon, 27 Jun 2016 00:23:08 +0200 Subject: [PATCH] first attempt at CD! --- deploy.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index d4124d5..dfed8b6 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,4 +1,11 @@ #!/bin/sh -echo "Called deploy.sh for env ${ENVIRON}" -echo "If I were to perform real work, I'd be doing that now. But I'm not." +echo "Stage: ${CI_BUILD_STAGE}" +if [ "develop" == "${ENVIRON}" ] ; then + echo "Deploying ${CI_BUILD_REF_NAME} to develop. You can access it at .../${CI_BUILD_REF_NAME}" + target="${WWW_DEPLOY_ROOT_DEVELOP}/${CI_BUILD_REF_NAME}" + mkdir -p "${target}" + cp -a index.html manifest.appcache info resources dist/*.min.* "${target}" +else + echo "Automatic deployment to ${ENVIRON} is not yet implemented." +fi