Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
N
Naifu Frontend
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
novelai-storage
Naifu Frontend
Commits
61cd33be
Commit
61cd33be
authored
Oct 17, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve CI
parent
8e0ddd3c
Pipeline
#17220
failed with stages
in 2 minutes and 28 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
.gitlab-ci.yml
.gitlab-ci.yml
+20
-5
No files found.
.gitlab-ci.yml
View file @
61cd33be
...
...
@@ -4,9 +4,8 @@ stages:
variables
:
GIT_DEPTH
:
"
1"
NEXT_PUBLIC_BACKEND_URL
:
https://nai-api.moecube.com:444
build
:
.
build
:
stage
:
build
dependencies
:
[]
tags
:
...
...
@@ -15,18 +14,34 @@ build:
-
npm i -g pnpm
-
pnpm install
-
pnpm run build
-
mv build dist
-
mkdir dist
-
mv build dist/$TARGET
artifacts
:
paths
:
-
dist/
build_root
:
extends
:
.build
variables
:
TARGET
:
root
build_mycard
:
extends
:
.build
variables
:
TARGET
:
mycard
NEXT_PUBLIC_BACKEND_URL
:
https://nai-api.moecube.com:444
upload_to_minio
:
stage
:
deploy
dependencies
:
-
build
-
build_root
-
build_mycard
tags
:
-
linux
script
:
-
aws s3 --endpoint=https://minio.momobako.com:9000 sync --delete dist/ s3://nanahira/naifu-frontend
-
aws s3 --endpoint=https://minio.momobako.com:9000 sync --delete dist/mycard s3://nanahira/naifu-frontend
-
cd dist/root
-
tar -zcf - . | aws s3 --endpoint=https://minio.momobako.com:9000 cp - s3://nanahira/naifu-frontend.tar.gz
-
cd ..
only
:
-
master
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