diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 27946f9..a6d009a 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -12,17 +12,11 @@ jobs: image: quay.io/buildah/stable:latest if: github.ref == 'refs/heads/main' steps: - - name: download - run: curl ${{ github.server_url }}/${{ github.repository }}/archive/main.tar.gz | tar -xz - - name: login run: buildah login -u token -p ${{ secrets.SWABLAB_ORGA_PACKAGE_TOKEN }} git.swablab.de - - name: ls - run: ls documents - - name: build - run: buildah build -f documents/Containerfile -t git.swablab.de/${{ github.repository }}:latest documents + run: buildah build -t git.swablab.de/${{ github.repository }}:latest ${{ github.server_url }}/${{ github.repository }}.git - name: push run: buildah push git.swablab.de/${{ github.repository }}:latest diff --git a/Containerfile b/Containerfile index c6d6bb7..99e78b1 100644 --- a/Containerfile +++ b/Containerfile @@ -1,4 +1,5 @@ FROM docker.io/library/alpine AS build +COPY . . ENV TYPST_FONT_PATHS=. RUN apk add typst RUN wget -O ubuntu.ttf https://cdn.jsdelivr.net/fontsource/fonts/ubuntu@latest/latin-400-normal.ttf &&\