diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3c8d2482..b3c24b91 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -100,6 +100,19 @@ build:doc: - doc/public_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: stage: deploy image: alpine:latest @@ -112,3 +125,4 @@ deploy:doc: script: - 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.pdf $SSH_USER@$SSH_HOST:LdapSaisie.pdf