Commit 44a41beb authored by Chunchi Che's avatar Chunchi Che

fix gitlab-ci

parent 80120fd7
Pipeline #20252 canceled with stages
in 47 seconds
...@@ -44,6 +44,9 @@ npm_build: ...@@ -44,6 +44,9 @@ npm_build:
tags: tags:
- linux - linux
script: npm run build script: npm run build
artifacts:
paths:
- dist
deploy: deploy:
stage: deploy stage: deploy
...@@ -52,6 +55,16 @@ deploy: ...@@ -52,6 +55,16 @@ deploy:
extends: npm_build extends: npm_build
script: script:
- sudo apt-get install rsync - sudo apt-get install rsync
- rsync -av -e 'ssh -p 22 -i ~/.ssh/id_ed25519' dist/ 'kirayamato@8.142.104.5:${NEOS_DEPLOY_PATH}' - rsync -a --progress --human-readable dist/ 'kirayamato@8.142.104.5:${NEOS_DEPLOY_PATH}'
- rsync -av -e 'ssh -p 22 -i ~/.ssh/id_ed25519' assets/ 'kirayamato@8.142.104.5:${NEOS_DEPLOY_PATH}/assets' - rsync -a --progress --human-readable assets/ 'kirayamato@8.142.104.5:${NEOS_DEPLOY_PATH}/assets'
before_script:
- 'command -v ssh-agent >/dev/null || ( apt-get update -y && apt-get install openssh-client -y )'
- eval $(ssh-agent -s)
- ssh-add <(echo "$NEOS_SSH_PRIVATE_KEY" | base64 -d)
- mkdir -p ~/.ssh
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
- chmod 700 ~/.ssh
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