mirror of
https://gitlab.com/comunic/comunicconsole
synced 2024-12-25 13:08:52 +00:00
Add CI script
This commit is contained in:
parent
13b6c88eae
commit
aea0f22895
17
.gitlab-ci.yml
Normal file
17
.gitlab-ci.yml
Normal file
@ -0,0 +1,17 @@
|
||||
image: npm:14
|
||||
|
||||
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
|
||||
artifacts:
|
||||
paths:
|
||||
- build
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
Loading…
Reference in New Issue
Block a user