Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
ygopro-222DIY-cards
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
Ai
ygopro-222DIY-cards
Commits
529d64a6
Commit
529d64a6
authored
Apr 03, 2024
by
聖園ミカ
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
md
parent
7781844e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
120 deletions
+0
-120
.gitlab-ci.yml.backup
.gitlab-ci.yml.backup
+0
-109
bashdo.sh.backup
bashdo.sh.backup
+0
-11
No files found.
.gitlab-ci.yml.backup
deleted
100644 → 0
View file @
7781844e
stages:
- prepare
- deploy
variables:
GIT_DEPTH: "1"
LAST_UPDATE_DATE: "2021.1.19"
CURRENT_UPDATE_DATE: "2021.1.31"
redtext:
stage: prepare
dependencies: []
tags:
- linux
image: git-registry.mycard.moe/nanahira/srvpro:lite
variables:
DATABASE_FILE: expansions/222DIY.cdb
script:
- apt update && apt -y install sqlite3
- mv /ygopro-server/ygopro .
- mkdir dist
- cd ygopro
- mv ../expansions .
- echo "# Result of redtext test of commit $CI_COMMIT_SHA"
- echo "select id from datas;" | sqlite3 $DATABASE_FILE | xargs -I {} ./ygopro {} 2>&1 | tee ../dist/redtext.txt
- cd ..
artifacts:
paths:
- dist/
deploy_to_ygopro_server:
stage: prepare
dependencies: []
tags:
- linux
script:
- apt update && apt -y install openssh-client rsync coreutils
- mkdir ~/.ssh
- chmod 700 ~/.ssh
- ssh-keyscan 222diy.momobako.com >> ~/.ssh/known_hosts
- echo $NANAHIRA_SSH_KEY | base64 --decode > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/*
- rsync -4cavz --exclude=pics --delete ./expansions/ nanahira@222diy.momobako.com:~/ygopro/expansions
only:
- master
pack:
stage: prepare
dependencies: []
tags:
- linux
image: mono
variables:
GIT_DEPTH: "100"
script:
- sed -i '/mono-project.com/d' /etc/apt/sources.list /etc/apt/sources.list.d/*
- apt update && apt -y install p7zip-full wget git
- mkdir -p dist/archive dist/contents
- git log --pretty=%H --since=$LAST_UPDATE_DATE | xargs -I {} git diff-tree --no-commit-id --name-only --diff-filter=ACMR -r {} | sed "/sound\//d;/update\//d;/.yml/d" | sort | uniq | sed "s/^/'/g;s/\$/'/g" | xargs 7z a -mx9 dist/archive/ygopro-222DIY-update.7z || true
- git clone --depth=1 https://code.mycard.moe/alstroemeria-silentlove/ygopro-222DIY-sound sound
- wget -O update/filelist.txt https://cdn01.moecube.com/ygopro-222DIY/contents/update/filelist.txt || rm -rf update/filelist.txt
- rm -rf .*.yml .git* sound/.git*
- cd update
- ./update-server.sh
- cd ..
- 7z a -mx9 dist/archive/ygopro-222DIY-data.7z expansions update ygopro.exe
- 7z a -mx9 dist/archive/ygopro-222DIY-sound.7z sound
- ls -1 | sed '/dist/d' | xargs -I {} mv {} dist/contents/
artifacts:
paths:
- dist/
only:
- master
cut_pics:
stage: prepare
dependencies: []
tags:
- linux
script:
- apt update && apt -y install imagemagick
- mkdir -p dist/pics/thumbnail
- cd expansions/pics
- ls -1 *.jpg | xargs -P $(nproc) -I {} convert {} -resize 177x254! ../../dist/pics/{}
- ls -1 *.jpg | xargs -P $(nproc) -I {} convert {} -resize 44x64! ../../dist/pics/thumbnail/{}
- ls -1 *.png | sed 's/.png$//g' | xargs -P $(nproc) -I {} convert {}.png -resize 177x254! ../../dist/pics/{}.jpg
- ls -1 *.png | sed 's/.png$//g' | xargs -P $(nproc) -I {} convert {}.png -resize 44x64! ../../dist/pics/thumbnail/{}.jpg
artifacts:
paths:
- dist/
only:
- master
upload_to_minio:
stage: deploy
dependencies:
- redtext
- pack
- cut_pics
tags:
- linux
image: python
script:
- pip install -U -i https://mirrors.aliyun.com/pypi/simple/ awscli
- cp dist/archive/ygopro-222DIY-data.7z dist/archive/ygopro-222DIY-data-$CURRENT_UPDATE_DATE.7z
- cp dist/archive/ygopro-222DIY-update.7z dist/archive/ygopro-222DIY-update-$CURRENT_UPDATE_DATE.7z
- aws s3 --endpoint=https://minio.mycard.moe:9000 sync dist/ s3://mycard/ygopro-222DIY > /dev/null
only:
- master
bashdo.sh.backup
deleted
100644 → 0
View file @
7781844e
echo "resize image who is bigger than 100k";
for i in `find . -size +100k`;
do
convert $i -resize 50% $i;
echo "resize image $i to 50%";
done
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