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
八宫一月
pre-release-database-cdb
Commits
defbdbef
You need to sign in or sign up before continuing.
Commit
defbdbef
authored
Dec 15, 2023
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add database merging
parent
36c35ff9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
7 deletions
+23
-7
.gitlab-ci.yml
.gitlab-ci.yml
+23
-7
cdbs/test-release.cdb
cdbs/test-release.cdb
+0
-0
No files found.
.gitlab-ci.yml
View file @
defbdbef
stages
:
-
json
-
prepare
-
prepare2
-
pack
-
deploy
...
...
@@ -27,9 +28,22 @@ variables:
# - cd ..
# - exit $(cat dist/redtext.txt | wc -l)
json
:
stage
:
json
merge_databases
:
stage
:
prepare
dependencies
:
[]
tags
:
-
linux
script
:
-
apt update && apt -y install sqlite3
-
ls cdbs/test-release.cdb | xargs -I '{}' sqlite3 '{}' .dump | sqlite3 > test-release.cdb
artifacts
:
paths
:
-
test-release.cdb
json
:
stage
:
prepare2
dependencies
:
-
merge_databases
tags
:
-
linux
image
:
git-registry.mycard.moe/mycard/ygopro-cdb-descgen:master-x86
...
...
@@ -52,6 +66,7 @@ json:
pack
:
stage
:
pack
dependencies
:
-
merge_databases
-
json
tags
:
-
linux
...
...
@@ -77,7 +92,8 @@ pack:
server
:
stage
:
pack
dependencies
:
[]
dependencies
:
-
merge_databases
tags
:
-
linux
script
:
...
...
@@ -141,8 +157,8 @@ deploy:
stage
:
deploy
dependencies
:
-
server
tag
s
:
-
linux
variable
s
:
SERVER_PATH
:
~/ygopro-super-pre/expansions
script
:
-
apt update && apt -y install openssh-client rsync coreutils
-
mkdir ~/.ssh
...
...
@@ -150,7 +166,7 @@ deploy:
-
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
-
rsync -4cavzP --exclude=pics --delete ./server-dist/ $SERVER_USER@$SERVER_HOST:
$SERVER_PATH
only
:
-
master
-
tags
...
...
test-release.cdb
→
cdbs/
test-release.cdb
View file @
defbdbef
File moved
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