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