Locally I run this command in order to build a PDF file:
docker run -it -v $PWD:/doc/ -v $PWD/fonts/:/usr/share/fonts/external/ thomasweise/texlive sh -c 'xelatex *.tex'
And I have a cloudbuild.yaml file to build on Google Cloud
steps:
- name: thomasweise/texlive
entrypoint: sh
args:
- -c
- |
xelatex *.tex
- name: gcr.io/cloud-builders/gsutil
args: ["cp", "*.pdf", "gs://storage.skhaz.io"]
But my build fails because I need to mount a extra volume: -v $PWD/fonts/:/usr/share/fonts/external/
How can I translate the command above to cloudbuild.yaml?