Merge branch 'master' of gitlab.com:Ryuuji159/musiclist-client

This commit is contained in:
Daniel Cortes
2020-06-02 04:36:30 -04:00

19
.gitlab-ci.yml Normal file
View File

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