From c3e907f3f3b80fe623124ec843881e52817b79e9 Mon Sep 17 00:00:00 2001 From: genofire Date: Sat, 14 Mar 2020 13:14:53 +0100 Subject: [PATCH] ci: disable autodeploy --- .gitlab-ci.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 939372b..32884b2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -6,7 +6,6 @@ variables: stages: - build - test - - deploy before_script: - mkdir -p "/go/src/dev.sum7.eu/$CI_PROJECT_NAMESPACE/" @@ -42,16 +41,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