Skip to content
Snippets Groups Projects
Commit 0d12e564 authored by Anton Sarukhanov's avatar Anton Sarukhanov
Browse files

Merge branch 'frontend-cleanup' into 'master'

Include frontend deps when building in CI

See merge request !5
parents 39d3aa3e 6b2a098e
No related branches found
No related tags found
1 merge request!5Include frontend deps when building in CI
Pipeline #204 passed with stages
in 1 minute and 42 seconds
stages:
- build_content
- build_js
- build_html
- build_image
build_content:
stage: build_content
build_js:
stage: build_js
image: node:14
script:
- npm install --dev
- make js
artifacts:
paths:
- theme/static/
build_html:
stage: build_html
dependencies:
- build_js
image: python:3
script:
- pip install -r requirements.txt
- pelican content -o output -s pelicanconf.py
- make html
artifacts:
paths:
- output/
......@@ -15,7 +28,7 @@ build_content:
build_image:
stage: build_image
dependencies:
- build_content
- build_html
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
......
js:
npm run build
html:
npm run build && pelican content -o output -s pelicanconf.py
pelican content -o output -s pelicanconf.py
regenerate:
npm run build && pelican -r content -o output -s pelicanconf.py
......
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