diff --git a/.github/workflows/publish-debian-container.yml b/.github/workflows/publish-debian-container.yml index 2982e8a..ff7e5e1 100644 --- a/.github/workflows/publish-debian-container.yml +++ b/.github/workflows/publish-debian-container.yml @@ -17,7 +17,7 @@ env: IMAGE_NAME: ${{ github.repository }} jobs: - build-and-push-image: + build-and-push-debian-image: runs-on: ubuntu-latest # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. permissions: @@ -61,3 +61,49 @@ jobs: labels: ${{ steps.meta.outputs.labels }} cache-from: type=gha cache-to: type=gha,mode=max + + build-and-push-debian-large-image: + needs: build-and-push-debian-image + runs-on: ubuntu-latest + # Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job. + permissions: + contents: read + packages: write + attestations: write + id-token: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + # https://github.com/actions/runner-images/issues/2840#issuecomment-1284059930 + - name: Free disk space + uses: ./.github/actions/disk-cleanup + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to the Container registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata (tags, labels) for Docker + id: meta + uses: docker/metadata-action@v5 + with: + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + + - name: Build and push Debian container image + id: push + uses: docker/build-push-action@v6 + with: + push: true + context: containers/debian-large + file: containers/debian/Containerfile + tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:debian-large + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max diff --git a/containers/debian-large/Containerfile b/containers/debian-large/Containerfile new file mode 100644 index 0000000..5a57d45 --- /dev/null +++ b/containers/debian-large/Containerfile @@ -0,0 +1,14 @@ +# SPDX-FileCopyrightText: Stefan Tatschner +# SPDX-License-Identifier: MIT + +FROM ghcr.io/rumpelsepp/devman:debian + +LABEL org.opencontainers.image.authors="stefan@rumpelsepp.org" +LABEL org.opencontainers.image.licenses="MIT" +LABEL org.opencontainers.image.title="Debian Large Devman" +LABEL org.opencontainers.image.base.name="ghcr.io/rumpelsepp/devman:debian" + +RUN apt-get update + +RUN DEBIAN_FRONTEND=noninteractive apt-get install -y texlive-full +RUN DEBIAN_FRONTEND=noninteractive apt-get install -y latexmk diff --git a/containers/debian/Containerfile b/containers/debian/Containerfile index 23b4835..53209cb 100644 --- a/containers/debian/Containerfile +++ b/containers/debian/Containerfile @@ -11,8 +11,8 @@ LABEL org.opencontainers.image.base.name="docker.io/debian:trixie" RUN apt-get update # Cache as much as possible here. -RUN DEBIAN_FRONTEND=noninteractive apt-get install -y texlive-full -RUN DEBIAN_FRONTEND=noninteractive apt-get install -y latexmk +RUN DEBIAN_FRONTEND=noninteractive apt-get install -y devscripts +RUN DEBIAN_FRONTEND=noninteractive apt-get install -y dh-make RUN DEBIAN_FRONTEND=noninteractive apt-get install -y xindy RUN DEBIAN_FRONTEND=noninteractive apt-get install -y atuin RUN DEBIAN_FRONTEND=noninteractive apt-get install -y apt-utils