feat: remove containerfiles
This commit is contained in:
parent
575547a8ce
commit
6dcb979ca7
4 changed files with 26 additions and 39 deletions
|
@ -1,10 +0,0 @@
|
||||||
FROM mcr.microsoft.com/devcontainers/base:alpine
|
|
||||||
RUN apk add typst
|
|
||||||
RUN mkdir -p /fonts
|
|
||||||
RUN wget -O /fonts/ubuntu.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-normal.ttf
|
|
||||||
RUN wget -O /fonts/ubuntu-italic.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-italic.ttf
|
|
||||||
RUN wget -O /fonts/ubuntu-bold.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-700-normal.ttf
|
|
||||||
RUN wget -O /fonts/noto.ttf https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-400-normal.ttf
|
|
||||||
RUN wget -O /fonts/noto-italic.ttf https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-400-italic.ttf
|
|
||||||
RUN wget -O /fonts/noto-bold.ttf https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-700-normal.ttf
|
|
||||||
ENV TYPST_FONT_PATHS=/fonts
|
|
|
@ -1,9 +1,16 @@
|
||||||
{
|
{
|
||||||
"name": "documents",
|
"name": "documents",
|
||||||
"build": {
|
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
|
||||||
"dockerfile": "Containerfile"
|
"features": {
|
||||||
|
"ghcr.io/michidk/devcontainers-features/typst": {},
|
||||||
|
"ghcr.io/rocker-org/devcontainer-features/apt-packages": {
|
||||||
|
"packages": "fonts-noto-core,fonts-ubuntu"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"containerUser": "vscode",
|
"containerUser": "vscode",
|
||||||
|
"containerEnv": {
|
||||||
|
"TYPST_FONT_PATHS": "/usr/share/fonts"
|
||||||
|
},
|
||||||
"runArgs": [
|
"runArgs": [
|
||||||
"--userns=keep-id",
|
"--userns=keep-id",
|
||||||
"--security-opt=label=disable"
|
"--security-opt=label=disable"
|
||||||
|
|
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
|
@ -9,17 +9,32 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
name: 🚢 Deploy
|
name: 🚢 Deploy
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
TYPST_FONT_PATHS: /usr/share/fonts
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- run: sudo apt install -y fonts-noto-core fonts-ubuntu
|
||||||
|
|
||||||
|
- uses: typst-community/setup-typst@v3
|
||||||
|
- run: typst c 3d-druck-agb.typ
|
||||||
|
- run: typst c beitragsordnung.typ
|
||||||
|
- run: typst c beleg.typ
|
||||||
|
- run: typst c datenschutz.typ
|
||||||
|
- run: typst c haftungsausschluss.typ
|
||||||
|
- run: typst c mtgliedsantrag.typ
|
||||||
|
- run: typst c satzung.typ
|
||||||
|
- run: typst c werkstatt-agb.typ
|
||||||
|
- run: typst c werkstatt-regeln.typ
|
||||||
|
|
||||||
- name: build containerfile
|
- name: build containerfile
|
||||||
id: build-image
|
id: build-image
|
||||||
uses: redhat-actions/buildah-build@v2
|
uses: redhat-actions/buildah-build@v2
|
||||||
with:
|
with:
|
||||||
image: ghcr.io/swablab/documents
|
image: ghcr.io/swablab/documents
|
||||||
|
base-image: scratch
|
||||||
tags: latest
|
tags: latest
|
||||||
containerfiles: |
|
content: |
|
||||||
./Containerfile
|
*.pdf
|
||||||
|
|
||||||
- name: Log in to ghcr.io
|
- name: Log in to ghcr.io
|
||||||
uses: redhat-actions/podman-login@v1
|
uses: redhat-actions/podman-login@v1
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
FROM docker.io/alpine:latest AS build
|
|
||||||
RUN apk add typst
|
|
||||||
RUN mkdir -p /fonts
|
|
||||||
RUN wget -O /fonts/ubuntu.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-normal.ttf
|
|
||||||
RUN wget -O /fonts/ubuntu-italic.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-italic.ttf
|
|
||||||
RUN wget -O /fonts/ubuntu-bold.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-700-normal.ttf
|
|
||||||
RUN wget -O /fonts/noto.ttf https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-400-normal.ttf
|
|
||||||
RUN wget -O /fonts/noto-italic.ttf https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-400-italic.ttf
|
|
||||||
RUN wget -O /fonts/noto-bold.ttf https://cdn.jsdelivr.net/fontsource/fonts/noto-sans@latest/latin-700-normal.ttf
|
|
||||||
ENV TYPST_FONT_PATHS=/fonts
|
|
||||||
|
|
||||||
WORKDIR /app
|
|
||||||
COPY . .
|
|
||||||
RUN typst c 3d-druck-agb.typ
|
|
||||||
RUN typst c beitragsordnung.typ
|
|
||||||
RUN typst c beleg.typ
|
|
||||||
RUN typst c datenschutz.typ
|
|
||||||
RUN typst c haftungsausschluss.typ
|
|
||||||
RUN typst c mitgliedsantrag.typ
|
|
||||||
RUN typst c satzung.typ
|
|
||||||
RUN typst c werkstatt-agb.typ
|
|
||||||
RUN typst c werkstatt-regeln.typ
|
|
||||||
|
|
||||||
FROM scratch
|
|
||||||
COPY --from=build /app/*.pdf /
|
|
Loading…
Add table
Reference in a new issue