Commit 8d576f40 authored by Tom Käsler's avatar Tom Käsler

add ci job to generate theme preview images

parent deab5b8b
......@@ -2,6 +2,7 @@ stages:
- install
- test
- build
- assets
- deploy
# Cache modules in between jobs
......@@ -51,6 +52,25 @@ build:
paths:
- dist
generate_previews:
stage: assets
only:
- master
tags:
- nodejs
script:
- curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add
- echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
- apt-get -y update
- apt-get -y install google-chrome-stable
- CHROME_BIN=`whereis google-chrome`
- npm install
- cd dist/browser
- node server &
- sleep 15s
- cd assets/jobs
- node --experimental-modules GenerateImages.mjs --command=all --host=http://localhost:4000
deploy:
stage: deploy
only:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment