feat: presentationg pptx prepare & export

$URL/docs/slide.pptx
This commit is contained in:
Winston Smith 2023-02-28 16:11:09 +01:00
parent f1e10560a7
commit bf8c9b88a8

View File

@ -1,6 +1,10 @@
stages: stages:
- build-deps
- build - build
- deploy - deploy
variables:
GIT_SUBMODULE_STRATEGY: recursive
prepare_folders: prepare_folders:
environment: $CI_COMMIT_BRANCH environment: $CI_COMMIT_BRANCH
@ -8,8 +12,8 @@ prepare_folders:
image: alpine:latest image: alpine:latest
script: script:
- mkdir -p .public - mkdir -p .public
- mkdir -p .public/slides - mkdir -p .public/docs
- chown -R 1000:1000 .public/slides - chown -R 1000:1000 .public/docs
cache: cache:
paths: paths:
- .public - .public
@ -19,30 +23,45 @@ prepare_folders:
rules: rules:
- if: $CI_COMMIT_BRANCH =~ /^make/ - if: $CI_COMMIT_BRANCH =~ /^make/
export: render_pdf:
environment: $CI_COMMIT_BRANCH environment: $CI_COMMIT_BRANCH
variables: stage: build-deps
WORK_PATH: "public/$CI_COMMIT_BRANCH"
stage: build
when: manual when: manual
image: image:
name: astefanutti/decktape name: astefanutti/decktape
entrypoint: ["/bin/sh", "-c"] entrypoint: ["/bin/sh", "-c"]
script: 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: cache:
paths: paths:
- .public - .public
artifacts: artifacts:
paths: paths:
- .public/slides - .public/docs
rules: rules:
- if: $CI_COMMIT_BRANCH =~ /^make/ - 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: pages:
environment: $CI_COMMIT_BRANCH environment: $CI_COMMIT_BRANCH
variables:
GIT_SUBMODULE_STRATEGY: recursive
stage: deploy stage: deploy
when: manual when: manual
script: script: