实际上我正在使用 travis,但我想换成无人机。
对于所有 tex 文档,我使用带有容器的小型 Makefile 来生成我的 pdf 文件并将其部署到我的存储库中。
但是由于我使用的是 gitea,所以我想用无人机设置我的集成管道,但我不知道如何配置.drone.yml
以在每个标签 als 版本上部署我的 pdf 文件。
实际上我正在使用以下内容.drone.yml
,我很高兴地说,目前构建过程运行良好。
clone:
git:
image: plugins/git
tags: true
pipeline:
pdf:
image: volkerraschek/docker-latex:latest
pull: true
commands:
- make
这是我的Makefile
# Docker Image
IMAGE := volkerraschek/docker-latex:latest
# Input tex-file and output pdf-file
FILE := index
TEX_NAME := ${FILE}.tex
PDF_NAME := ${FILE}.pdf
latexmk:
latexmk \
-shell-escape \
-synctex=1 \
-interaction=nonstopmode \
-file-line-error \
-pdf ${TEX_NAME}
docker-latexmk:
docker run \
--rm \
--user="$(shell id -u):$(shell id -g)" \
--net="none" \
--volume="${PWD}:/data" ${IMAGE} \
make latexmk
当我推送一个新的 git 标签时,我的drone.yml 中缺少哪些标签和条件来部署我的 index.pdf 作为 gitea 中的发布?
沃尔克