Skip to content
Snippets Groups Projects
Commit a617db08 authored by François Grand's avatar François Grand
Browse files

fix(ci): wrong conditions for project building

refs #604
parent 56be0ca0
No related branches found
No related tags found
2 merge requests!225Release v4.17.0,!206Resolve "PWA: l'application ne se met pas à jour"
Pipeline #140215 failed
......@@ -80,13 +80,8 @@ test:
script:
- npm run e2e
build-dev:
stage: build-dev
only:
- pushes
- tags
- schedules
- web
.build:
stage: build
artifacts:
expire_in: 10 min
paths:
......@@ -94,21 +89,25 @@ build-dev:
script:
# -baseref option is used by npm to set the npm_config_basehref environment variable
# used in package.json
- npm run build-href -basehref=/cassiopee/$CI_COMMIT_REF_NAME/
- npm run build-href -basehref=$BASEHREF
build-prod:
stage: build-prod
build-dev:
extends: .build
only:
- pushes
- tags
- pushes
- schedules
- web
artifacts:
expire_in: 10 min
paths:
- dist/
script:
- npm run build
variables:
- BASEHREF=/cassiopee/$CI_COMMIT_REF_NAME/
build-prod:
extends: .build
only:
- tags
- devel
variables:
- BASEHREF=/
clean-stale-branches:
stage: clean-stale-branches
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment