Add support for armv7 in the docker build
This commit is contained in:
parent
2b520cdc17
commit
b3d5a22b5d
2 changed files with 7 additions and 1 deletions
6
.github/workflows/publish.yml
vendored
6
.github/workflows/publish.yml
vendored
|
@ -31,6 +31,11 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
with:
|
||||
platforms: arm32v7/armhf, arm64v8/aarch64
|
||||
|
||||
# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||
|
@ -59,6 +64,7 @@ jobs:
|
|||
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/arm/v7,linux/arm64,linux/amd64
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM python:3.12-slim
|
||||
FROM --platform=$TARGETPLATFORM python:3.9-slim:3.12-slim
|
||||
LABEL org.opencontainers.image.source=https://github.com/mdiluz/matchy
|
||||
LABEL org.opencontainers.image.description="Matchy matches matchees"
|
||||
LABEL org.opencontainers.image.licenses=Unlicense
|
||||
|
|
Loading…
Add table
Reference in a new issue