first attempt at CD!

This commit is contained in:
Manuel Friedli 2016-06-27 00:23:08 +02:00
parent 7448563449
commit 65c113913f

View file

@ -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