File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build and publish to GHCR
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ tags :
8+ - " v*"
9+ workflow_dispatch :
10+
11+ permissions :
12+ contents : read
13+ packages : write
14+
15+ jobs :
16+ docker :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v4
21+
22+ - name : Set up QEMU
23+ uses : docker/setup-qemu-action@v3
24+
25+ - name : Set up Docker Buildx
26+ uses : docker/setup-buildx-action@v3
27+
28+ - name : Log in to GHCR
29+ uses : docker/login-action@v3
30+ with :
31+ registry : ghcr.io
32+ username : ${{ github.actor }}
33+ password : ${{ secrets.GITHUB_TOKEN }}
34+
35+ - name : Extract Docker metadata
36+ id : meta
37+ uses : docker/metadata-action@v5
38+ with :
39+ images : ghcr.io/${{ github.repository }}
40+ tags : |
41+ type=raw,value=latest,enable={{is_default_branch}}
42+ type=ref,event=branch
43+ type=ref,event=tag
44+ type=sha
45+
46+ - name : Build and push
47+ uses : docker/build-push-action@v6
48+ with :
49+ context : .
50+ push : true
51+ platforms : linux/amd64,linux/arm64
52+ tags : ${{ steps.meta.outputs.tags }}
53+ labels : ${{ steps.meta.outputs.labels }}
Original file line number Diff line number Diff line change 33A Docker image that includes TinyTeX and latexmk.
44
55Based on https://github.com/carteakey/tinytex-docker .
6+
7+ ## Run the image locally
8+
9+ Example command to:
10+
11+ - Mount your current local project directory into the container
12+ - Mount a local TinyTeX cache directory so auto-installed TeX packages persist across runs
13+
14+ ``` sh
15+ mkdir -p " $HOME /.cache/tinytex"
16+
17+ docker run --rm -it \
18+ -v " $PWD " :/work \
19+ -v " $HOME /.cache/tinytex" :/root/.TinyTeX \
20+ -w /work \
21+ ghcr.io/calkit/tinytex-latexmk-docker:latest \
22+ latexmk -pdf main.tex
23+ ```
24+
25+ Change ` main.tex ` to your document entrypoint.
You can’t perform that action at this time.
0 commit comments