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 build ryuuji@142.93.158.54:~