From bb876541ccd7e4519fb8a3e7147334e7a6e82a38 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 9 Jan 2016 20:37:45 +0000 Subject: [PATCH] Remove deployment from CI build --- circle.yml | 6 ------ scripts/ci-deploy.sh | 16 ---------------- scripts/deploy.sh | 29 ----------------------------- 3 files changed, 51 deletions(-) delete mode 100755 scripts/ci-deploy.sh delete mode 100755 scripts/deploy.sh diff --git a/circle.yml b/circle.yml index ad548bf..d73c98c 100644 --- a/circle.yml +++ b/circle.yml @@ -15,9 +15,3 @@ dependencies: test: override: - ./runtests - -deployment: - production: - branch: v3 - commands: - - ./scripts/ci-deploy.sh diff --git a/scripts/ci-deploy.sh b/scripts/ci-deploy.sh deleted file mode 100755 index eed3570..0000000 --- a/scripts/ci-deploy.sh +++ /dev/null @@ -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)" diff --git a/scripts/deploy.sh b/scripts/deploy.sh deleted file mode 100755 index 8926382..0000000 --- a/scripts/deploy.sh +++ /dev/null @@ -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