Skip to content

Commit

Permalink
Merge pull request #35 from titouanfreville/issue-4-add-CI
Browse files Browse the repository at this point in the history
Issue 4 add ci
  • Loading branch information
titouanfreville authored Mar 11, 2017
2 parents 3053652 + bcb4e95 commit af86fce
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ curl -X POST --header 'Content-Type: application/json' \
\"Env\": [
\"VIRTUAL_NETWORK=nginx-proxy\",
\"VIRTUAL_HOST=docs-alpha.popcube.xyz\",
\"LETSENCRYPT_HOST=docs-alpha.popcube.xyz\",
\"[email protected]\",
\"VIRTUAL_PORT=4567\"
],
\"Hostname\": \"popcube_alpha_docs\" }" \
Expand All @@ -65,7 +67,9 @@ curl -X POST --header 'Content-Type: application/json' \
\"Image\": \"${REPO}/popcubeapi:$1\",
\"Env\": [
\"VIRTUAL_NETWORK=nginx-proxy\",
\"VIRTUAL_HOST=alpha-api.popcube.xyz\",
\"VIRTUAL_HOST=api-alpha.popcube.xyz\",
\"LETSENCRYPT_HOST=api-alpha.popcube.xyz\",
\"[email protected]\",
\"VIRTUAL_PORT=3000\"
],
\"HostConfig\": {
Expand Down Expand Up @@ -112,6 +116,16 @@ then
echo "TAG and BRANCH is not compatible :("
exit 1
fi
if [ -z ${DEPLOY_TOKEN+x} ] || [ -z ${DEPLOY_URL+x} ];
then
echo "#################################"
echo "############WARNING##############"
echo "#################################"
echo " DEPLOY_TOKEN is not SET"
echo " OR"
echo " DEPLOY_URL is not SET"
echo "#################################"
fi
if [ ${TAG+x} ];
then
echo "TAG is set to '$TAG'";
Expand Down

0 comments on commit af86fce

Please sign in to comment.