2021-07-26 19:33:39 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
2022-05-16 09:22:05 +00:00
|
|
|
name: build-release
|
|
|
|
|
2022-05-16 13:12:55 +00:00
|
|
|
clone:
|
|
|
|
disable: true
|
|
|
|
|
2021-07-26 19:33:39 +00:00
|
|
|
steps:
|
|
|
|
|
2022-05-16 13:12:55 +00:00
|
|
|
- name: clone
|
|
|
|
image: plugins/git
|
|
|
|
settings:
|
|
|
|
recursive: true
|
|
|
|
|
|
|
|
- name: fetch images
|
2021-07-26 19:33:39 +00:00
|
|
|
image: alpine/git
|
|
|
|
commands:
|
2022-05-16 13:12:55 +00:00
|
|
|
- git lfs fetch
|
|
|
|
- git lfs checkout
|
2021-07-26 19:33:39 +00:00
|
|
|
|
|
|
|
- name: pandoc
|
2022-05-16 10:19:46 +00:00
|
|
|
image: pandoc/core:2.18-alpine
|
2021-07-26 19:33:39 +00:00
|
|
|
commands:
|
2022-05-16 10:23:37 +00:00
|
|
|
- sh build-pandoc.sh latex user > user/user-manual.tex
|
|
|
|
- sh build-pandoc.sh latex admin > admin/admin-manual.tex
|
2021-07-26 19:33:39 +00:00
|
|
|
|
2022-05-16 13:12:55 +00:00
|
|
|
- name: build-latex-user
|
|
|
|
image: texlive/texlive
|
|
|
|
commands:
|
|
|
|
- cd user
|
|
|
|
- latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode -xelatex user-manual.tex
|
2022-05-30 19:12:58 +00:00
|
|
|
- mv user-manual.pdf ../Manuel\ utilisateur.pdf
|
2022-05-16 13:12:55 +00:00
|
|
|
|
|
|
|
- name: build-latex-admin
|
|
|
|
image: texlive/texlive
|
2021-07-26 19:33:39 +00:00
|
|
|
commands:
|
2022-05-16 13:12:55 +00:00
|
|
|
- cd admin
|
|
|
|
- latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode -xelatex admin-manual.tex
|
2022-05-30 19:12:58 +00:00
|
|
|
- mv admin-manual.pdf ../Manuel\ administrateur.pdf
|
2021-07-26 19:33:39 +00:00
|
|
|
|
|
|
|
- name: release
|
|
|
|
image: plugins/gitea-release
|
|
|
|
settings:
|
|
|
|
api_key:
|
|
|
|
from_secret: gitea_key
|
|
|
|
base_url: https://gitea.champs-libres.be
|
|
|
|
files:
|
2022-05-30 19:12:58 +00:00
|
|
|
- "Manuel administrateur.pdf"
|
|
|
|
- "Manuel utilisateur.pdf"
|
2022-05-16 09:27:13 +00:00
|
|
|
title: ${DRONE_TAG:=latest}
|
2022-07-11 22:36:33 +00:00
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- tag
|
2022-05-16 09:22:05 +00:00
|
|
|
---
|
|
|
|
kind: signature
|
2022-05-30 19:12:58 +00:00
|
|
|
hmac: dc200b08e09b83e734ff829ac62c7daf5f80986f725edac1b974b07793adb4b0
|
2022-05-16 09:22:05 +00:00
|
|
|
|
|
|
|
...
|