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
Show 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:
...
@@ -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
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