remove autodeploy

This commit is contained in:
Martin/Geno 2018-04-13 17:58:56 +02:00
parent a858fa649a
commit 18300ccc44
No known key found for this signature in database
GPG Key ID: 9D7D3C6BFF600C6A
2 changed files with 0 additions and 28 deletions

View File

@ -32,15 +32,6 @@ jobs:
- checkout - checkout
- run: go get -t -d -v ./... - run: go get -t -d -v ./...
- run: go test -race ./... - 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: workflows:
version: 2 version: 2
build_and_tests: build_and_tests:
@ -48,8 +39,3 @@ workflows:
- build - build
- test - test
- test_race - test_race
- deploy:
requires:
- build
- test
- test_race

View File

@ -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"