From 5ba9da2e69637a3dc83f0bb40e6545208889ea70 Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Wed, 7 Aug 2019 00:18:09 +0200 Subject: [PATCH] fixes --- .gitlab-ci.yml | 14 -------------- schalter/main.go | 1 + 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9854788..3040ae3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,6 @@ image: golang:latest stages: - build - test - - deploy before_script: - mkdir -p "/go/src/dev.sum7.eu/$CI_PROJECT_NAMESPACE/" @@ -38,16 +37,3 @@ test-race-my-project: stage: test script: - go test -race ./... - -deploy: - stage: deploy - only: - - master - script: - - go install "dev.sum7.eu/$CI_PROJECT_PATH" - - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )' - - eval $(ssh-agent -s) - - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - - ssh -o StrictHostKeyChecking=no -p $SSH_PORT "$CI_PROJECT_NAME@$SSH_HOST" sudo /usr/bin/systemctl stop $CI_PROJECT_NAME - - scp -o StrictHostKeyChecking=no -P $SSH_PORT "/go/bin/$CI_PROJECT_NAME" "$CI_PROJECT_NAME@$SSH_HOST":/opt/$CI_PROJECT_NAME/bin - - ssh -o StrictHostKeyChecking=no -p $SSH_PORT "$CI_PROJECT_NAME@$SSH_HOST" sudo /usr/bin/systemctl start $CI_PROJECT_NAME diff --git a/schalter/main.go b/schalter/main.go index 7029bbb..53bbbf3 100644 --- a/schalter/main.go +++ b/schalter/main.go @@ -1,6 +1,7 @@ package schalter import ( + "fmt" "time" "dev.sum7.eu/genofire/golang-lib/worker"