dyno-bot/Dyno-core-op8resolve/.gitlab-ci.yml

23 lines
620 B
YAML
Raw Permalink Normal View History

2020-09-12 20:08:48 +02:00
stages:
- deploy
########################## DEPLOYMENT ##############################
.deploy_base:
image: kroniak/ssh-client
before_script:
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa
deploy to dev:
stage: deploy
extends: .deploy_base
script:
- ssh dyno@10.12.0.95 "cd Dyno-core && git pull origin master && npm install && npm link Dyno && tsc -p 'tsconfig.json' && npm link"
- ssh dyno@10.12.0.95 "./restart.sh"
only:
- master