Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
P
pre-release-database-cdb
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
liucerf
pre-release-database-cdb
Commits
eef49688
You need to sign in or sign up before continuing.
Commit
eef49688
authored
Oct 27, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test ci
parent
d39465c6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
113 additions
and
0 deletions
+113
-0
.gitlab-ci.yml
.gitlab-ci.yml
+113
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
eef49688
stages
:
-
pack
-
deploy
variables
:
GIT_DEPTH
:
"
1"
pack
:
stage
:
pack
dependencies
:
[]
tags
:
-
linux
script
:
-
mkdir -p data archive
-
mv *.cdb data/
-
mv pics data/
-
mv script data/
-
mv *.conf data/
-
mv *.ini data/
-
cd data
-
7z a -mx9 ../archive/ygopro-super-pre.zip pics script *.cdb *.conf *.ini
-
cd ..
-
mv archive/ygopro-super-pre.zip archive/ygopro-super-pre.ypk
-
cp archive/ygopro-super-pre.ypk archive/ygopro-super-pre-$CI_COMMIT_REF_NAME.ypk
artifacts
:
paths
:
-
data
-
archive
server
:
stage
:
pack
dependencies
:
[]
tags
:
-
linux
script
:
-
mkdir server-dist
-
mv *.cdb server-dist
-
mv *.conf server-dist
-
mv script server-dist
# merge ygopro-pre-data
-
git clone --depth=1 https://code.mycard.moe/mycard/ygopro-pre-data
-
mv ygopro-pre-data/expansions/* server-dist/
-
mv ygopro-pre-data/script/* server-dist/script/
artifacts
:
paths
:
-
server-dist
.minio
:
stage
:
deploy
dependencies
:
-
pack
tags
:
-
linux
script
:
-
aws s3 --endpoint=https://minio.mycard.moe:9000 sync $uploadDir/ s3://mycard/ygopro-super-pre/$uploadDir
upload_archive
:
extends
:
.minio
variables
:
uploadDir
:
archive
only
:
-
master
upload_data
:
extends
:
.minio
variables
:
uploadDir
:
data
only
:
-
master
deploy
:
stage
:
deploy
dependencies
:
-
pack
tags
:
-
linux
variables
:
username
:
$MYCARD_USERNAME
password
:
$MYCARD_PASSWORD
appVersion
:
$CI_COMMIT_SHORT_SHA
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-super-pre ../data ||
true
-
./index.sh makeBuild ygopro2-super-pre ../data ||
true
-
cd ..
only
:
-
master
.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 ./server-dist/ $SERVER_USER@$SERVER_HOST:~/ygopro-super-pre/expansions
only
:
-
master
deploy_to_tiramisu
:
extends
:
.deploy_to_server
variables
:
SERVER_HOST
:
tiramisu.mycard.moe
SERVER_USER
:
mycard
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