Skip to content
Snippets Groups Projects
Commit 4d27e99b authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

split in 2 stages

parent 261ae876
No related branches found
No related tags found
1 merge request!3Expansion panel article
Pipeline #103629 passed with stages
in 2 minutes and 26 seconds
# 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:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment