Merge branch 'master' of gitlab.com:Ryuuji159/musiclist-client
This commit is contained in:
19
.gitlab-ci.yml
Normal file
19
.gitlab-ci.yml
Normal 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:~
|
||||||
Reference in New Issue
Block a user