Skip to content

Update pandoc docker image from 3.2 to 3.6.3 #147

Update pandoc docker image from 3.2 to 3.6.3

Update pandoc docker image from 3.2 to 3.6.3 #147

Workflow file for this run

name: Compile example paper
on:
# Build any branch where either the source data, templates, or dockerfile changed
push:
paths:
- 'example/*'
- 'data/templates/*'
- "Dockerfile"
pull_request:
paths:
- 'example/*'
- 'data/templates/*'
- "Dockerfile"
# Build, but don't push on pull requests
jobs:
build:
name: Example PDF
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# Build the docker image locally to enable testing
# updates to the templates. This workflow does not
# push new images to dockerhub at all, hence why we
# don't prefix this like openjournals/inara:<tag>
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
openjournals/inara
ghcr.io/openjournals/inara
tags: |
type=semver,pattern={{version}}
type=edge
type=ref,event=branch
type=ref,event=pr
- name: Build image
id: push
uses: docker/build-push-action@v5
with:
context: "."
push: false
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Build draft PDF
run: >-
docker run \
--volume "$(pwd):/data" \
--user "$(id -u):$(id -g)" \
${{ fromJSON(steps.meta.outputs.json).tags[0] }} \
-o "jats,contextpdf,crossref,preprint,tex,pdf" example/paper.md
- name: Upload draft PDF
uses: actions/upload-artifact@v4
with:
name: draft
path: |
example/jats/paper.jats
example/paper.context.pdf
example/paper.crossref
example/paper.pdf
example/paper.tex
example/paper.preprint.tex
- name: Build production PDF
run: >-
docker run \
--volume "$(pwd):/data" \
--user "$(id -u):$(id -g)" \
${{ fromJSON(steps.meta.outputs.json).tags[0] }} \
-o "jats,contextpdf,crossref,preprint,tex,pdf" -p example/paper.md
- name: Upload production PDF
uses: actions/upload-artifact@v4
with:
name: production
path: |
example/jats/paper.jats
example/paper.context.pdf
example/paper.crossref
example/paper.pdf
example/paper.tex
example/paper.preprint.tex