diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 14ff52484ab83e0f7290bcd98b9d2777d725471f..aebed772f70719fcdb913aa5e4ee2dd104dd82d5 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