Skip to content

Commit

Permalink
feat: support all available architectures, just like the parent pytho…
Browse files Browse the repository at this point in the history
…n image
  • Loading branch information
engineervix committed Jul 2, 2024
1 parent ef8b126 commit 39a2537
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/build-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ jobs:

strategy:
matrix:
# python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.12"]
# debian-version: ["bullseye", "bookworm"]
debian-version: ["bookworm"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
debian-version: ["bullseye", "bookworm"]

steps:
- name: Check out the repo
Expand All @@ -33,7 +31,7 @@ jobs:
shell: bash
run: |
docker buildx build . \
--platform linux/amd64,linux/arm64 \
--platform linux/amd64,linux/i386,linux/arm64,linux/arm/v5,linux/arm/v6,linux/arm/v7,linux/ppc64le,linux/s390x \
--file Dockerfile \
--tag engineervix/python-latex:${{ matrix.python-version }}-slim-${{ matrix.debian-version }}-$(date +'%Y%m%d%H%M%S') \
--build-arg PYTHON_VERSION=${{ matrix.python-version }} \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
platforms: linux/amd64,linux/i386,linux/arm64,linux/arm/v5,linux/arm/v6,linux/arm/v7,linux/ppc64le,linux/s390x
push: true
tags: engineervix/python-latex:${{ matrix.python-version }}-slim-${{ matrix.debian-version }}
labels: |
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ LABEL description="Python ${PYTHON_VERSION}-slim-${DEBIAN_VERSION} plus texlive-
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends \
# texlive-full \
texlive-full \
pandoc \
; \
rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit 39a2537

Please sign in to comment.