Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
Wiki
Manage
Activity
Members
Labels
Plan
Issues
53
Issue boards
Milestones
Wiki
Code
Merge requests
6
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MDM Lab
Wiki
Commits
4d27e99b
Commit
4d27e99b
authored
1 year ago
by
Remi PLANEL
Browse files
Options
Downloads
Patches
Plain Diff
split in 2 stages
parent
261ae876
No related branches found
No related tags found
1 merge request
!3
Expansion panel article
Pipeline
#103629
passed with stages
Stage:
Stage:
in 2 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-3
18 additions, 3 deletions
.gitlab-ci.yml
with
18 additions
and
3 deletions
.gitlab-ci.yml
+
18
−
3
View file @
4d27e99b
# The Docker image that will be used to build your app
# The Docker image that will be used to build your app
image
:
node:19.5-bullseye-slim
image
:
node:19.5-bullseye-slim
# Functions that should be executed before the build script is run
# Functions that should be executed before the build script is run
before_script
:
-
npm ci
cache
:
cache
:
paths
:
paths
:
-
node_modules/
-
node_modules/
stages
:
-
build
-
deploy
build
:
stage
:
build
before_script
:
-
npm ci
script
:
-
NUXT_APP_BASE_URL=/wiki/ npm run generate
artifacts
:
paths
:
-
.output/public
untracked
:
false
when
:
on_success
expire_in
:
"
30
days"
pages
:
pages
:
stage
:
deploy
only
:
only
:
-
main
-
main
script
:
script
:
-
NUXT_APP_BASE_URL=/wiki/ npm run generate
-
rm -rf public
-
rm -rf public
-
mv .output/public public
-
mv .output/public public
artifacts
:
artifacts
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment