2016-06-26 22:20:30 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2016-06-27 00:47:59 +02:00
|
|
|
echo "Target: ${TARGET}"
|
2016-06-27 00:23:08 +02:00
|
|
|
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}"
|
2016-06-27 00:28:31 +02:00
|
|
|
rm -rf "${target}/*"
|
|
|
|
mkdir "${target}/dist"
|
|
|
|
cp -a index.html manifest.appcache info resources "${target}"
|
|
|
|
cp -a dist/*.min.* "${target}/dist"
|
2016-06-27 00:23:08 +02:00
|
|
|
else
|
|
|
|
echo "Automatic deployment to ${ENVIRON} is not yet implemented."
|
|
|
|
fi
|