Commit 2112b35b authored by mercury233's avatar mercury233

Merge branch 'master' of git.mycard.moe:mycard/ygopro-pre-data

parents f61afc89 3bf44846
Pipeline #5980 passed with stages
in 43 seconds
......@@ -43,6 +43,18 @@ pack:
paths:
- dist
server:
stage: pack
dependencies: []
tags:
- linux
script:
- mv script expansions/
- mv expansions dist
artifacts:
paths:
- dist
deploy:
stage: deploy
dependencies:
......@@ -63,3 +75,32 @@ deploy:
- cd ..
only:
- tags
.deploy_to_server:
stage: deploy
dependencies:
- server
tags:
- linux
script:
- apt update && apt -y install openssh-client rsync coreutils
- mkdir ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan $SERVER_HOST >> ~/.ssh/known_hosts
- echo $NANAHIRA_SSH_KEY | base64 --decode > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/*
- rsync -4cavzP --exclude=pics --delete ./dist/ $SERVER_USER@$SERVER_HOST:~/ygopro-pre-live
only:
- master
deploy_to_tiramisu:
extends: .deploy_to_server
variables:
SERVER_HOST: tiramisu.mycard.moe
SERVER_USER: mycard
deploy_to_koishi:
extends: .deploy_to_server
variables:
SERVER_HOST: koishi.momobako.com
SERVER_USER: nanahira
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