From 6b4b265c466ade5755ad611050ac081e73a8b4cb Mon Sep 17 00:00:00 2001 From: Ryuuji Date: Tue, 2 Jun 2020 07:52:29 +0000 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b91dd9d..0dfc79b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,8 +3,18 @@ image: node:latest cache: paths: - node_modules/ - + +before_script: + - apt-get update -y && apt-get upgrade -y + - apt-get install rsync -y + - 'which ssh-agent || ( apt-get install openssh-client -y )' + - 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' + test_execution: script: - npm install - - ls -al \ No newline at end of file + - npm run build + - rsync build ryuuji@142.93.158.54:~ \ No newline at end of file