Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-rush-duel
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4
Issues
4
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-rush-duel
Commits
0f0b90ae
Commit
0f0b90ae
authored
Sep 16, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ci
parent
17914a87
Pipeline
#5621
passed with stages
in 2 minutes and 38 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
114 additions
and
0 deletions
+114
-0
.gitlab-ci.yml
.gitlab-ci.yml
+114
-0
strings.conf
strings.conf
+0
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
0f0b90ae
stages
:
-
pack
-
deploy
variables
:
GIT_DEPTH
:
"
1"
pack
:
stage
:
pack
dependencies
:
[]
tags
:
-
linux
script
:
-
wget -O - https://cdn02.moecube.com:444/ygopro-rush-duel/images/ygopro-rush-duel-images.tar.zst | tar --zstd -xf -
-
mkdir expansions
-
mv *.cdb expansions/
-
mv pics expansions/
-
mv script expansions/
-
mv *.conf expansions/
-
mkdir -p data/ygopro data/ygopro2 archive
-
cd expansions
-
7z a -mx9 ../archive/ygopro-rush-duel.zip pics script *.cdb *.conf
-
cd ..
-
mv archive/ygopro-rush-duel.zip archive/ygopro-rush-duel-$CI_COMMIT_REF_NAME.ypk
-
cp -rf expansions data/ygopro/
-
mv expansions data/ygopro2/
-
mv picture data/ygopro2/
-
mv server data/
artifacts
:
paths
:
-
data
-
archive
server
:
stage
:
pack
dependencies
:
[]
tags
:
-
linux
script
:
-
mkdir dist
-
mv script dist/
-
mv *.cdb dist/
-
mv lflist.conf dist/
artifacts
:
paths
:
-
dist
.minio
:
stage
:
deploy
dependencies
:
-
pack
tags
:
-
linux
script
:
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync --delete $uploadDir/ s3://mycard/ygopro-rush-duel/$uploadDir
upload_archive
:
extends
:
.minio
variables
:
uploadDir
:
archive
only
:
-
master
-
tags
upload_data
:
extends
:
.minio
variables
:
uploadDir
:
data
only
:
-
master
-
tags
deploy
:
stage
:
deploy
dependencies
:
-
pack
tags
:
-
linux
variables
:
username
:
$MYCARD_USERNAME
password
:
$MYCARD_PASSWORD
appVersion
:
$CI_COMMIT_TAG
script
:
-
apt update; apt -y install tar zstd curl jq
-
git clone https://code.mycard.moe/mycard/mycard-package-script
-
cd mycard-package-script
-
./index.sh makeBuild ygopro-rush-duel ../data/ygopro ||
true
-
./index.sh makeBuild ygopro2-rush-duel ../data/ygopro2 ||
true
-
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/expansions
only
:
-
master
deploy_to_rd
:
extends
:
.deploy_to_server
variables
:
SERVER_HOST
:
rd.mycard.moe
SERVER_USER
:
root
strings.conf
0 → 100644
View file @
0f0b90ae
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