Commit 979b798a authored by nanahira's avatar nanahira

add server deploy

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