remove autodeploy
This commit is contained in:
parent
a858fa649a
commit
18300ccc44
14
circle.yml
14
circle.yml
|
@ -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
|
|
||||||
|
|
14
deploy.sh
14
deploy.sh
|
@ -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"
|
|
Loading…
Reference in New Issue