feat: presentation pdf export and serve
$URL/slides/slide.pdf
This commit is contained in:
parent
86f78a7fff
commit
672415f435
@ -1,21 +1,61 @@
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
PUBLIC_PATH: public/$CI_COMMIT_BRANCH
|
||||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
prepare_folders:
|
||||
environment: $CI_COMMIT_BRANCH
|
||||
stage: .pre
|
||||
image: alpine:latest
|
||||
script:
|
||||
- mkdir -p .public
|
||||
- mkdir -p .public/slides
|
||||
- chown -R 1000:1000 .public/slides
|
||||
cache:
|
||||
paths:
|
||||
- .public
|
||||
artifacts:
|
||||
paths:
|
||||
- .public
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH =~ /^make/
|
||||
|
||||
export:
|
||||
environment: $CI_COMMIT_BRANCH
|
||||
variables:
|
||||
WORK_PATH: "public/$CI_COMMIT_BRANCH"
|
||||
stage: build
|
||||
when: manual
|
||||
image:
|
||||
name: astefanutti/decktape
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
script:
|
||||
- "node /decktape/decktape.js -s 2560x1440 reveal --chrome-path chromium-browser --chrome-arg=--no-sandbox --chrome-arg=--disable-web-security index.html .public/slides/slide.pdf"
|
||||
cache:
|
||||
paths:
|
||||
- .public
|
||||
artifacts:
|
||||
paths:
|
||||
- .public/slides
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH =~ /^make/
|
||||
|
||||
pages:
|
||||
environment: $CI_COMMIT_BRANCH
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
stage: deploy
|
||||
when: manual
|
||||
script:
|
||||
- mkdir .public
|
||||
- cp -r * .public
|
||||
- mv .public/custom_files/gulpfile.js .public/reveal.js/
|
||||
- '[ -d "public/$CI_COMMIT_BRANCH" ] && { rm -rf public/$CI_COMMIT_BRANCH/*; mv .public/* public/$CI_COMMIT_BRANCH/; } || { mkdir -p public/$CI_COMMIT_BRANCH; mv .public/* public/$CI_COMMIT_BRANCH/; }'
|
||||
cache:
|
||||
paths:
|
||||
- .public
|
||||
- public
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH =~ /^make/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user