我试图在Gitlab中使用一个自动将.tex文件编译成PDF的CI来创建一个存储库。
因此,使用LaTeX (https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/lib/gitlab/ci/templates/LaTeX.gitlab-ci.yml)的Gtilab模板,我的.gtilab-ci.yml如下所示。
variables:
LATEX_IMAGE: listx/texlive:2020
build:
image: $LATEX_IMAGE
script:
- latexmk -pdf
artifacts:
paths:
- "main.pdf"而且,在我的主存储库中,显然有一个main.tex。
提交更改时,作业按假定的方式启动,但在执行脚本时失败。谨随函附上日志,以供参考:
Running with gitlab-runner 14.5.1 (de104fcd)
on selenium
Preparing the "shell" executor 00:00
Using Shell executor...
Preparing environment 00:00
Running on selenium...
Getting source from Git repository 00:00
Fetching changes with git depth set to 50...
Bestehendes Git-Repository in /some/anonymised/path neuinitialisiert
Checking out 4f46c62b as feature-setup...
Skipping Git submodules setup
Executing "step_script" stage of the job script 00:00
$ latexmk -pdf
bash: Zeile 120: latexmk: Kommando nicht gefunden.
Cleaning up project directory and file based variables 00:00
ERROR: Job failed: exit status 1我是相当新的CI/CD实现与Gitlab在一般。因此,我不知道要进一步调试什么,以及问题可能在哪里。
提前感谢!
https://stackoverflow.com/questions/70303393
复制相似问题