Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-cn-database-generator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
ygopro-cn-database-generator
Commits
979b798a
Commit
979b798a
authored
Aug 30, 2024
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add server deploy
parent
98bdac99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
16 deletions
+22
-16
.gitlab-ci.yml
.gitlab-ci.yml
+22
-16
No files found.
.gitlab-ci.yml
View file @
979b798a
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment