Commit dbddc18e authored by wyykak's avatar wyykak

Add .gitlab-ci.yml

parent d4e05ebe
stages:
- deploy
deploy_to_server:
stage: deploy
dependencies: []
tags:
- linux
script:
- apt update && apt -y install openssh_client coreutils
- mkdir ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan thc.momobako.com >> ~/.ssh/known_hosts
- echo $WYYKAK_SSH_KEY > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/*
- ssh root@thc.mycard.moe "cd auto_deploy_tool; ./deploy.sh"
only:
- master
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