Skip to content

Commit

Permalink
feat(latex): revamp LaTeX devcontainer, setup docker bake
Browse files Browse the repository at this point in the history
Signed-off-by: John Muchovej <[email protected]>
  • Loading branch information
jmuchovej committed Aug 19, 2024
1 parent a188791 commit e338dd8
Show file tree
Hide file tree
Showing 7 changed files with 204 additions and 428 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/build-latex-devcontainer.yaml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/containers-latex.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Build and publish LaTeX devcontainer to ghcr.io"

on:
push:
paths:
- "templates/src/latex/Dockerfile"
- "templates/src/latex/docker-bake.hcl"
- ".github/workflows/build-latex-devcontainer.yaml"
workflow_dispatch:
schedule:
- cron: "0 2 1 4 *" # historically, TeXLive has been published around March

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
99 changes: 0 additions & 99 deletions latex/.devcontainer.json

This file was deleted.

160 changes: 0 additions & 160 deletions latex/Dockerfile

This file was deleted.

19 changes: 0 additions & 19 deletions latex/devcontainer-template.json

This file was deleted.

Loading

0 comments on commit e338dd8

Please sign in to comment.