From a0b84014cdb7835ae422ee864cec9ee9d079a584 Mon Sep 17 00:00:00 2001 From: lunax Date: Sat, 8 May 2021 22:20:34 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..3852f81 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,10 @@ +before_script: + - eval $(ssh-agent -s) + - ssh-add <(echo "$SSH_PRIVATE_KEY") + - mkdir -p ~/.ssh + - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' +deploy: + script: + - ssh $HOST "bash $SCRIPT_PATH" + only: + - master \ No newline at end of file