1
Fork 0

Remove deployment from CI build

This commit is contained in:
Jake Howard 2016-01-09 20:37:45 +00:00
parent 45b496c0f9
commit bb876541cc
3 changed files with 0 additions and 51 deletions

View file

@ -15,9 +15,3 @@ dependencies:
test: test:
override: override:
- ./runtests - ./runtests
deployment:
production:
branch: v3
commands:
- ./scripts/ci-deploy.sh

View file

@ -1,16 +0,0 @@
#!/usr/bin/env bash
set -e
RED='tput setaf 1'
NC='tput sgr 0'
YELLOW='tput setaf 3'
GREEN='tput setaf 2'
if [ -z "$CIRCLE_PROJECT_USERNAME"]; then
echo "$($RED)You need to be running on CircleCI to deploy!$($NC)"
exit 1
fi
ssh web@theorangeone.net 'bash -s' < ./scripts/deploy.sh
echo "$($GREEN)Deployment complete!$($NC)"

View file

@ -1,29 +0,0 @@
#!/usr/bin/env bash
set -e
RED='tput setaf 1'
NC='tput sgr 0'
YELLOW='tput setaf 3'
GREEN='tput setaf 2'
cd
echo "$($YELLOW)>> Fetching Repository...$($NC)"
ctf fetch RealOrangeOne/theorangeone.net v3 deployment
sleep 15
echo "$($YELLOW)>> Entering Project...$($NC)"
project_dir="$(\ls -1dt ./*/ | head -n 1)"
previous_dir = "$(\ls -1dt ./*/ | head -n 2)"
cd project_dira
echo "$($YELLOW)>> Building Project...$($NC)"
ctf project run build
ctf project run manage.py migrate
echo "$($YELLOW)>> Routing Project...$($NC)"
ident=$project_dir + ":development:web"
ctf router staging.theorangeone.net --ident %ident
echo "$($YELLOW)>> Destroying Previous Project...$($NC)"
cd -
cd previous_dir
ctf project stop
cd -
rm -rf previous_dir