Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
Ygopro Tips
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
alstroemeria-silentlove
Ygopro Tips
Commits
6a92ab8e
Commit
6a92ab8e
authored
Sep 21, 2021
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ci
parent
09364a4a
Pipeline
#5726
passed with stages
in 53 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
.gitlab-ci.yml
.gitlab-ci.yml
+23
-0
validate.sh
validate.sh
+14
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
6a92ab8e
stages
:
-
validate
-
deploy
variables
:
GIT_DEPTH
:
"
1"
validate
:
stage
:
validate
dependencies
:
[]
tags
:
-
linux
script
:
./validate.sh
upload_to_minio
:
stage
:
deploy
dependencies
:
[]
tags
:
-
linux
script
:
-
aws s3 --endpoint=https://minio.momobako.com:9000 sync --delete data/ s3://public/ygopro-tips
only
:
-
master
validate.sh
0 → 100755
View file @
6a92ab8e
#!/bin/bash
returnCode
=
0
for
file
in
data/
*
.json
;
do
echo
"Validating
$file
"
cat
"
$file
"
| jq
>
/dev/null
fileReturnCode
=
$?
if
[[
"
$fileReturnCode
"
!=
0
]]
;
then
echo
"File
$file
is bad."
returnCode
=
"
$fileReturnCode
"
fi
done
exit
"
$returnCode
"
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