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