diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 9b755b2..68e3931 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -6,8 +6,6 @@ name: Docker # documentation. on: - schedule: - - cron: '19 5 * * *' push: branches: [ '*' ] # Publish semver tags as releases. @@ -51,6 +49,9 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # v3.0.0 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + # Login against a Docker registry except on PR # https://github.com/docker/login-action - name: Log into registry ${{ env.REGISTRY }} @@ -76,6 +77,7 @@ jobs: uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 # v5.0.0 with: context: . + platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/Dockerfile b/Dockerfile index b8e3155..8b3ba42 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM debian:11-slim AS build +FROM debian:12-slim AS build RUN apt-get update && \ apt-get install --no-install-suggests --no-install-recommends --yes python3 python3-venv && \ python3 -m venv /venv && \ @@ -8,7 +8,7 @@ FROM build AS build-venv COPY requirements.txt /requirements.txt RUN /venv/bin/pip install --disable-pip-version-check -r /requirements.txt -FROM gcr.io/distroless/python3-debian11 +FROM gcr.io/distroless/python3-debian12 COPY --from=build-venv /venv /venv WORKDIR /usr/src/app