feat: presentationg pptx prepare & export

$URL/docs/slide.pptx
This commit is contained in:
Alexandre Simao 2023-02-28 16:11:09 +01:00
parent 672415f435
commit c17bdd38f5
No known key found for this signature in database
GPG Key ID: DFD784DB2A6F7A07

View File

@ -1,6 +1,10 @@
stages:
- build-deps
- build
- deploy
variables:
GIT_SUBMODULE_STRATEGY: recursive
prepare_folders:
environment: $CI_COMMIT_BRANCH
@ -8,8 +12,8 @@ prepare_folders:
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: