feat: presentationg pptx prepare & export
$URL/docs/slide.pptx
This commit is contained in:
parent
f1e10560a7
commit
bf8c9b88a8
@ -1,15 +1,19 @@
|
||||
stages:
|
||||
- build-deps
|
||||
- build
|
||||
- deploy
|
||||
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
|
||||
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
|
||||
- mkdir -p .public/docs
|
||||
- chown -R 1000:1000 .public/docs
|
||||
cache:
|
||||
paths:
|
||||
- .public
|
||||
@ -19,30 +23,45 @@ prepare_folders:
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH =~ /^make/
|
||||
|
||||
export:
|
||||
render_pdf:
|
||||
environment: $CI_COMMIT_BRANCH
|
||||
variables:
|
||||
WORK_PATH: "public/$CI_COMMIT_BRANCH"
|
||||
stage: build
|
||||
stage: build-deps
|
||||
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"
|
||||
- "node /decktape/decktape.js -s 2560x1440 reveal --chrome-path chromium-browser --chrome-arg=--no-sandbox --chrome-arg=--disable-web-security index.html .public/docs/slide.pdf"
|
||||
cache:
|
||||
paths:
|
||||
- .public
|
||||
artifacts:
|
||||
paths:
|
||||
- .public/slides
|
||||
- .public/docs
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH =~ /^make/
|
||||
|
||||
render_ppt:
|
||||
environment: $CI_COMMIT_BRANCH
|
||||
stage: build
|
||||
when: manual
|
||||
image:
|
||||
name: linuxserver/libreoffice
|
||||
entrypoint: ["/bin/sh", "-c"]
|
||||
script:
|
||||
- 'soffice --headless --infilter="impress_pdf_import" --convert-to "pptx:Impress Office Open XML" .public/docs/slide.pdf --outdir .public/docs/'
|
||||
cache:
|
||||
paths:
|
||||
- .public
|
||||
artifacts:
|
||||
paths:
|
||||
- .public/docs
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH =~ /^make/
|
||||
|
||||
|
||||
pages:
|
||||
environment: $CI_COMMIT_BRANCH
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
stage: deploy
|
||||
when: manual
|
||||
script:
|
||||
|
Loading…
Reference in New Issue
Block a user