Chill-manuals/.drone.yml

71 lines
1.4 KiB
YAML
Raw Normal View History

---
kind: pipeline
type: docker
2022-05-16 09:22:05 +00:00
name: build-release
clone:
disable: true
steps:
- name: clone
image: plugins/git
settings:
recursive: true
- name: fetch images
image: alpine/git
commands:
- git lfs fetch
- git lfs checkout
2023-04-27 21:04:53 +00:00
depends_on:
- clone
- name: pandoc
2022-05-16 10:19:46 +00:00
image: pandoc/core:2.18-alpine
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
2023-04-27 21:04:53 +00:00
depends_on:
- fetch images
- 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
2023-04-27 21:04:53 +00:00
depends_on:
- pandoc
- name: build-latex-admin
image: texlive/texlive
commands:
- 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
2023-04-27 21:04:53 +00:00
depends_on:
- pandoc
- 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}
2023-04-27 21:04:53 +00:00
depends_on:
- build-latex-user
- build-latex-admin
when:
event:
- tag
2022-05-16 09:22:05 +00:00
---
kind: signature
2023-04-27 21:04:53 +00:00
hmac: a83892d8f9bb967bd2a6335e2b34008e05f9bec482f270237c6764918434f97c
2022-05-16 09:22:05 +00:00
...