fix: fonts
This commit is contained in:
parent
fc6d993ccd
commit
3db73cf544
2 changed files with 23 additions and 11 deletions
28
.github/workflows/main.yml
vendored
28
.github/workflows/main.yml
vendored
|
@ -10,15 +10,27 @@ jobs:
|
||||||
name: 🚢 Deploy
|
name: 🚢 Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: docker/setup-buildx-action@v3
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: docker/login-action@v3
|
|
||||||
|
- name: build containerfile
|
||||||
|
id: build-image
|
||||||
|
uses: redhat-actions/buildah-build@v2
|
||||||
with:
|
with:
|
||||||
|
image: ghcr.io/swablab/documents
|
||||||
|
tags: latest
|
||||||
|
containerfiles: |
|
||||||
|
./Containerfile
|
||||||
|
|
||||||
|
- name: Log in to ghcr.io
|
||||||
|
uses: redhat-actions/podman-login@v1
|
||||||
|
with:
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{github.actor}}
|
|
||||||
password: ${{secrets.GITHUB_TOKEN}}
|
- name: Push to ghcr.io
|
||||||
- uses: docker/build-push-action@v6
|
uses: redhat-actions/push-to-registry@v2
|
||||||
with:
|
with:
|
||||||
file: Containerfile
|
image: ${{ steps.build-image.outputs.image }}
|
||||||
push: true
|
tags: ${{ steps.build-image.outputs.tags }}
|
||||||
tags: ghcr.io/swablab/documents:latest
|
registry: ghcr.io
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
FROM docker.io/alpine:latest AS build
|
FROM docker.io/alpine:latest AS build
|
||||||
RUN apk add typst
|
RUN apk add typst
|
||||||
RUN mkdir -p /root/.local/share/fonts
|
RUN wget -O ubuntu.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-normal.ttf
|
||||||
RUN wget -O /root/.local/share/fonts/ubuntu.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-normal.ttf
|
RUN wget -O noto.ttf https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-400-normal.ttf
|
||||||
RUN wget -O /root/.local/share/fonts/noto.ttf https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-400-normal.ttf
|
ENV TYPST_FONT_PATHS=.
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN typst c 3d-druck-agb.typ
|
RUN typst c 3d-druck-agb.typ
|
||||||
|
|
Loading…
Add table
Reference in a new issue