CI: build and publish LdapSaisie.pdf file

This commit is contained in:
Benjamin Renard 2023-08-18 18:47:08 +02:00
parent c9114823ee
commit 22408c4475
Signed by: bn8
GPG key ID: 3E2E1CE1907115BC

View file

@ -100,6 +100,19 @@ build:doc:
- doc/public_html/ - doc/public_html/
- doc/LdapSaisie.html - doc/LdapSaisie.html
build:doc:pdf:
stage: build
image:
name: pink33n/html-to-pdf
entrypoint: ["/bin/sh", "-c"]
needs:
- build:doc
script:
- /usr/local/bin/entrypoint --url file://$(pwd)/doc/LdapSaisie.html --pdf doc/LdapSaisie.pdf
artifacts:
paths:
- doc/LdapSaisie.pdf
deploy:doc: deploy:doc:
stage: deploy stage: deploy
image: alpine:latest image: alpine:latest
@ -112,3 +125,4 @@ deploy:doc:
script: script:
- rsync -atv --exclude '.git*' --delete --progress ./doc/public_html/ $SSH_USER@$SSH_HOST:./ - rsync -atv --exclude '.git*' --delete --progress ./doc/public_html/ $SSH_USER@$SSH_HOST:./
- rsync -atv ./doc/LdapSaisie.html $SSH_USER@$SSH_HOST:LdapSaisie.html - rsync -atv ./doc/LdapSaisie.html $SSH_USER@$SSH_HOST:LdapSaisie.html
- rsync -atv ./doc/LdapSaisie.pdf $SSH_USER@$SSH_HOST:LdapSaisie.pdf