Commit 979b798a authored by nanahira's avatar nanahira

add server deploy

parent 98bdac99
......@@ -63,19 +63,25 @@ upload_to_minio:
only:
- master
#deploy_to_ygopro_server:
# stage: deploy
# dependencies:
# - zh-CN
# tags:
# - linux
# script:
# - apt update && apt -y install openssh-client rsync coreutils
# - mkdir ~/.ssh
# - chmod 700 ~/.ssh
# - ssh-keyscan koishi.momobako.com >> ~/.ssh/known_hosts
# - echo $NANAHIRA_SSH_KEY | base64 --decode > ~/.ssh/id_rsa
# - chmod 600 ~/.ssh/*
# - rsync -4cavzP --delete output/zh-CN/expansions/ nanahira@koishi.momobako.com:~/ygopro-cn/expansions
# only:
# - master
.deploy_server:
stage: deploy
dependencies:
- env408
tags:
- linux
variables:
OUTPUT_ENV: env408-zh-CN
SERVER_IDENTIFIER: '408'
script:
- apt update && apt -y install openssh-client rsync coreutils
- mkdir ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan koishi.momobako.com >> ~/.ssh/known_hosts
- echo $NANAHIRA_SSH_KEY | base64 --decode > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/*
- rsync -4cavzP --delete output/$OUTPUT_ENV/expansions/ nanahira@koishi.momobako.com:~/ygopro-$SERVER_IDENTIFIER/expansions
only:
- master
deploy_408:
extends: .deploy_server
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