Commit f4cfba9d authored by Chunchi Che's avatar Chunchi Che

update gitlab-ci

parent 5175a952
Pipeline #20246 failed with stages
in 7 seconds
......@@ -5,6 +5,17 @@ stages:
- build
- deploy
before_script:
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- chmod 400 "$NEOS_SSH_PRIVATE_KEY"
- ssh-add "$NEOS_SSH_PRIVATE_KEY"
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
npm_ci:
stage: install
tags:
......@@ -34,3 +45,12 @@ npm_build:
- linux
script: npm run build
deploy:
stage: deploy
tags:
- linux
script:
- sudo apt-get install rsync
- rsync -av -e 'ssh -p 22' dist/ 'kirayamato@8.142.104.5:${NEOS_DEPLOY_PATH}'
- rsync -av -e 'ssh -p 22' assets/ 'kirayamato@8.142.104.5:${NEOS_DEPLOY_PATH}/assets'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment