Add docker + latex workflow (wip)
This commit is contained in:
24
docker.yaml
Normal file
24
docker.yaml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
name: Build Docker image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master, main]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-docker:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Login to container registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: gitea.local.chriphost.de
|
||||||
|
username: ${{ secrets.CONTAINER_REGISTRY_USER }}
|
||||||
|
password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}
|
||||||
|
- name: Build Docker image
|
||||||
|
run: docker build . --file Dockerfile --tag gitea.local.chriphost.de/christoph/<IMAGE>:latest
|
||||||
|
- name: Push Docker image
|
||||||
|
run: docker push gitea.local.chriphost.de/christoph/<IMAGE>:latest
|
||||||
|
|
||||||
|
|
27
latex.yaml
Normal file
27
latex.yaml
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
name: Build LaTeX document
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [master, main]
|
||||||
|
|
||||||
|
# TODO: Don't install texlive-full etc. every time, but use gitea.vps.chriphost.de/christoph/docker-texlive
|
||||||
|
jobs:
|
||||||
|
build-latex:
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: Setup TexLive
|
||||||
|
run: |
|
||||||
|
apt-get update
|
||||||
|
apt-get install -y texlive-full
|
||||||
|
apt-get install -y inkscape
|
||||||
|
apt-get install -y python3-pygments
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Build LaTeX document
|
||||||
|
# run: docker run --rm --volumes-from ${{ env.JOB_CONTAINER_NAME }} --workdir ${{ github.workspace }} ghcr.io/xu-cheng/texlive-full:latest latexmk -shell-escape -pdf thesis.tex
|
||||||
|
run: latexmk -shell-escape -pdf thesis.tex
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: interrupt-handling-using-the-x86-apic.pdf
|
||||||
|
path: thesis.pdf
|
Reference in New Issue
Block a user