66 lines
1.3 KiB
YAML
66 lines
1.3 KiB
YAML
---
|
|
kind: pipeline
|
|
type: docker
|
|
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
|
|
|
|
- name: pandoc
|
|
image: pandoc/core:2.18-alpine
|
|
commands:
|
|
- sh build-pandoc.sh latex user > user/user-manual.tex
|
|
- sh build-pandoc.sh latex admin > admin/admin-manual.tex
|
|
|
|
- name: build-latex-user
|
|
image: texlive/texlive
|
|
commands:
|
|
- echo "images"
|
|
- ls user/img
|
|
- echo $PWD
|
|
- cd user
|
|
- ls -lah img/
|
|
- echo $PWD
|
|
- latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode -xelatex user-manual.tex
|
|
|
|
- name: build-latex-admin
|
|
image: texlive/texlive
|
|
commands:
|
|
- echo "images"
|
|
- ls user/img
|
|
- echo $PWD
|
|
- cd admin
|
|
- echo $PWD
|
|
- latexmk -pdf -file-line-error -halt-on-error -interaction=nonstopmode -xelatex admin-manual.tex
|
|
|
|
- name: release
|
|
image: plugins/gitea-release
|
|
settings:
|
|
api_key:
|
|
from_secret: gitea_key
|
|
base_url: https://gitea.champs-libres.be
|
|
files:
|
|
- user-manual.pdf
|
|
- admin-manual.pdf
|
|
checksum:
|
|
- sha512
|
|
title: ${DRONE_TAG:=latest}
|
|
prerelease: true
|
|
---
|
|
kind: signature
|
|
hmac: ba21245b0378b033d916c579b1ff9dc8ee4db9b293c0ed8cbe489c0f0a7ca3f1
|
|
|
|
...
|