diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 39dc6d8..9fe726d 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -20,6 +20,7 @@ on: jobs: configure: + if: false name: Configure runs-on: ubuntu-latest outputs: diff --git a/.github/workflows/debian.yaml b/.github/workflows/debian.yaml new file mode 100644 index 0000000..ebdf196 --- /dev/null +++ b/.github/workflows/debian.yaml @@ -0,0 +1,43 @@ +name: Image Builder + +on: + push: + pull_request: + # Build, but don't push on pull requests + +jobs: + build: + name: Debian + runs-on: ubuntu-latest + + env: + PUSH_IMAGE: ${{ github.repository == 'pandoc/dockerfiles' && + (github.ref == 'refs/heads/main' || + github.ref_type == 'tag' || + github.event_name != 'pull_request') }} + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to Docker Hub + uses: docker/login-action@v3 + if: ${{ env.PUSH_IMAGE }} + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_TOKEN }} + + - name: Build and maybe push image + uses: docker/build-push-action@v5 + with: + file: '3.5/bookworm/Dockerfile' + context: '.' + platforms: linux/arm64/v8 + push: ${{ env.PUSH_IMAGE }} + tags: 'pandoc/core:3.5-debian' diff --git a/3.5/bookworm/Dockerfile b/3.5/bookworm/Dockerfile new file mode 100644 index 0000000..080da5e --- /dev/null +++ b/3.5/bookworm/Dockerfile @@ -0,0 +1,405 @@ +# Base ################################################################## +FROM debian:bookworm AS debian-minimal +ARG PANDOC=3.5 +ARG LUA=5.4 + +LABEL maintainer='Albert Krewinkel ' +LABEL org.pandoc.maintainer='Albert Krewinkel ' +LABEL org.pandoc.author "John MacFarlane" +LABEL org.pandoc.version "$pandoc_version" + +# Install runtime dependencies +RUN < /dev/null; \ + [ -z "$manually_installed" ] || apt-mark manual $manually_installed; \ + apt-get purge -y --auto-remove \ + -o APT::AutoRemove::RecommendsImportant=false; \ +