diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..08f2b22 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,19 @@ +image: node:latest + +cache: + paths: + - node_modules/ + +before_script: + - apt-get update -y && apt-get upgrade -y + - apt-get install rsync -y + - mkdir -p ~/.ssh + - echo -e "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa + - chmod 600 ~/.ssh/id_rsa + - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config' + +test_execution: + script: + - npm install + - npm run build + - rsync -rvz build ryuuji@142.93.158.54:~ \ No newline at end of file