7 ms·
Do you have any more details about how you integrated Pandoc into your pipeline? A post or something?
by coreypreston 5y ago
Do you have any more details about how you integrated Pandoc into your pipeline? A post or something?
- stonesweep 5y agoSure thing, it's pretty simple and straightforward I can post right here. In your CI/CD runner, you add a "before" script like so (Gitlab YAML example): image: debian:latest before_script: - bash myscript.sh Your myscript.sh can be as simple as four lines (one to install curl, it's not a default on Debian), example: apt-get -y install curl VERSION=$(curl -s "https://api.github.com/repos/jgm/pandoc/releases/latest" | grep -Po '"tag_name": "\K.*?(?=")') curl -sLo "pandoc-${VERSION}-1-amd64.deb" "https://github.com/jgm/pandoc/releases/download/${VERSION}/pandoc-${VERSION}-1-amd64.deb" apt-get -y install "./pandoc-${VERSION}-1-amd64.deb" The Github API used above has the nice default of listing the latest release as you see used there in the grep on the right, one could enhance that with `jq` for higher intelligence but this very simple setup is functional as a starting point to develop your own style.