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
MyCard
pre-release-database-cdb
Commits
34f540d7
Commit
34f540d7
authored
Dec 15, 2023
by
fallenstardust
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://code.mycard.moe/mycard/pre-release-database-cdb
parents
d4ec7bfe
4107230a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
7 deletions
+31
-7
.gitlab-ci.yml
.gitlab-ci.yml
+31
-7
cdbs/test-release.cdb
cdbs/test-release.cdb
+0
-0
No files found.
.gitlab-ci.yml
View file @
34f540d7
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
:
...
...
@@ -116,6 +132,12 @@ upload_data:
only
:
-
tags
upload_version_json
:
extends
:
.minio
script
:
-
aws s3 --endpoint=https://minio.mycard.moe:9000 cp data/version.txt s3://mycard/ygopro-super-pre/versions/$CI_COMMIT_REF_NAME/version.txt
-
aws s3 --endpoint=https://minio.mycard.moe:9000 cp data/test-release.json s3://mycard/ygopro-super-pre/versions/$CI_COMMIT_REF_NAME/test-release.json
deploy
:
stage
:
deploy
dependencies
:
...
...
@@ -139,10 +161,12 @@ deploy:
.deploy_to_server
:
stage
:
deploy
dependencies
:
-
server
tags
:
-
linux
dependencies
:
-
server
variables
:
SERVER_PATH
:
~/ygopro-super-pre/expansions
script
:
-
apt update && apt -y install openssh-client rsync coreutils
-
mkdir ~/.ssh
...
...
@@ -150,7 +174,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 @
34f540d7
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