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: stages:
- build_content - build_js
- build_html
- build_image - build_image
build_content: build_js:
stage: build_content 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 image: python:3
script: script:
- pip install -r requirements.txt - pip install -r requirements.txt
- pelican content -o output -s pelicanconf.py - make html
artifacts: artifacts:
paths: paths:
- output/ - output/
...@@ -15,7 +28,7 @@ build_content: ...@@ -15,7 +28,7 @@ build_content:
build_image: build_image:
stage: build_image stage: build_image
dependencies: dependencies:
- build_content - build_html
image: image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
entrypoint: [""] entrypoint: [""]
......
js:
npm run build
html: html:
npm run build && pelican content -o output -s pelicanconf.py pelican content -o output -s pelicanconf.py
regenerate: regenerate:
npm run build && pelican -r content -o output -s pelicanconf.py 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