-
Notifications
You must be signed in to change notification settings - Fork 3
41 lines (35 loc) · 1017 Bytes
/
containers-latex.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "LaTeX: Build & Publish to ghcr.io"
on:
push:
paths:
- "templates/src/latex/Dockerfile"
- "templates/src/latex/docker-bake.hcl"
- ".github/workflows/containers-latex.yaml"
workflow_dispatch:
schedule:
# historically, TeXLive has been published around March
- cron: "0 2 1 4 *"
jobs:
build-push-latex:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: "Checkout repository"
uses: "actions/checkout@v4"
- name: "Setup QEMU"
uses: "docker/setup-qemu-action@v3"
- name: "Setup Docker `buildx`"
uses: "docker/setup-buildx-action@v3"
- name: "Login to `ghcr.io`"
uses: "docker/login-action@v3"
with:
registry: "ghcr.io"
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- id: bake
uses: docker/bake-action@v5
with:
workdir: "./templates/src/latex"
push: true