diff --git a/circle.yml b/circle.yml index a4d4925..26c2cf8 100644 --- a/circle.yml +++ b/circle.yml @@ -32,15 +32,6 @@ jobs: - checkout - run: go get -t -d -v ./... - run: go test -race ./... - deploy: - docker: - - image: circleci/golang:latest - working_directory: /go/src/dev.sum7.eu/genofire/logmania - steps: - - checkout - - run: go get -t -d -v ./... - - run: go install dev.sum7.eu/genofire/logmania - - run: ./deploy.sh $HOST_FOR_STAGING $PORT_FOR_STAGING workflows: version: 2 build_and_tests: @@ -48,8 +39,3 @@ workflows: - build - test - test_race - - deploy: - requires: - - build - - test - - test_race diff --git a/deploy.sh b/deploy.sh deleted file mode 100755 index d339b1c..0000000 --- a/deploy.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -host=$1 -port=$2 -remote="circleci@${host}" -echo "deploying..." -ssh -o StrictHostKeyChecking=no -p $port $remote sudo systemctl stop logmania; -RETVAL=$? -[ $RETVAL -ne 0 ] && exit 1 -scp -q -P $port /go/bin/logmania $remote:~/bin/logmania; -RETVAL=$? -ssh -p $port $remote sudo systemctl start logmania; -[ $RETVAL -eq 0 ] && RETVAL=$? -[ $RETVAL -ne 0 ] && exit 1 -echo "deployed"