diff options
author | 2023-02-27 15:33:06 +0000 | |
---|---|---|
committer | 2023-02-27 15:33:06 +0000 | |
commit | ee578d528d4614a01e748db7356bf749eaf43740 (patch) | |
tree | 96e2a89b3df1259dfe3b233ee8e3c139579f445c | |
parent | Update GHCR org in CI (diff) |
Build against both amd64 and arm64 architectures
-rw-r--r-- | .github/workflows/build.yml | 10 | ||||
-rw-r--r-- | Dockerfile | 2 |
2 files changed, 5 insertions, 7 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f424eff..4918327 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,12 +21,9 @@ jobs: - name: Checkout code uses: actions/checkout@v2 - # The current version (v2) of Docker's build-push action uses - # buildx, which comes with BuildKit features that help us speed - # up our builds using additional cache features. Buildx also - # has a lot of other features that are not as relevant to us. - # - # See https://github.com/docker/build-push-action + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v1 @@ -46,6 +43,7 @@ jobs: context: . file: ./Dockerfile push: true + platforms: linux/amd64,linux/arm64 cache-from: type=registry,ref=ghcr.io/owl-corp/python-poetry-base:${{ matrix.python_version }} cache-to: type=inline tags: | @@ -1,6 +1,6 @@ ARG python_version=3.11-slim -FROM --platform=linux/amd64 python:$python_version +FROM python:$python_version # POETRY_VIRTUALENVS_IN_PROJECT is required to ensure in-projects venvs mounted from the host in dev # don't get prioritised by `poetry run` |