From cc61d2118a49b8d347bc20dcef46803a670abbc8 Mon Sep 17 00:00:00 2001 From: Emir <memir0@hotmail.no> Date: Thu, 16 Apr 2020 19:05:51 +0200 Subject: [PATCH] print part of key --- .gitlab-ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 14ff524..aebed77 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,7 +33,10 @@ deploy: - touch ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa # Required permission by ssh - echo "$key" > ~/.ssh/id_rsa - - ssh speed@35.228.31.13 - + - echo "$key" | cut -d'_' -f 10 + - apt update + - apt install --assume-yes rsync + - rsync --archive --delete --exclude='.git' --exclude='node_modules' . speed@35.228.31.13:app + - ssh speed@35.228.31.13 systemctl --user restart app only: - master -- GitLab