2016-06-26 22:20:30 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-06-27 00:23:08 +02:00
|
|
|
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
|