2022-06-12 16:56:49 +00:00
|
|
|
image: node:18
|
2021-07-13 17:05:46 +00:00
|
|
|
|
|
|
|
pages:
|
|
|
|
stage: deploy
|
|
|
|
script:
|
|
|
|
- echo Compile project
|
|
|
|
- npm install
|
|
|
|
- npm run build
|
|
|
|
- echo Overwrite configuration
|
|
|
|
- echo "{\"api_url\":\"https://api.communiquons.org/admin/\"}" > build/config.json
|
|
|
|
- echo Create 404 page
|
|
|
|
- cp build/index.html build/404.html
|
2021-07-13 17:43:55 +00:00
|
|
|
- rm -rf public
|
2021-07-13 17:36:59 +00:00
|
|
|
- mv build public
|
2021-07-13 17:05:46 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2021-07-13 17:36:59 +00:00
|
|
|
- public
|
2021-07-13 17:05:46 +00:00
|
|
|
rules:
|
|
|
|
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|