Files
musiclist-client/.gitlab-ci.yml
2020-06-02 08:27:08 +00:00

19 lines
451 B
YAML

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:~