Closed Freezor closed 6 days ago
When using load: true
it will export to the docker store which does not support multi-platform images by default atm. Looking at your workflow I guess you just want to test building your images without exporting anything so I think you should use the type=cacheonly
exporter: https://docs.docker.com/build/exporters/#cache-only-export
- name: Build AasxServerBlazor
uses: docker/build-push-action@v6
with:
outputs: type=cacheonly
platforms: linux/arm64, linux/amd64
file: ./src/docker/Dockerfile-AasxServerBlazor
tags: adminshellio/aasx-server-blazor:test
Hi @crazy-max . thanks for the fast reply. that was this. Thanks
Contributing guidelines
I've found a bug, and:
Description
I am encountering an issue with Docker Buildx when attempting to build and test Docker images for multiple platforms (
linux/amd64
andlinux/arm64
) using GitHub Actions. The error message received is:When I test it with single platforms in multiple steps, that works, but I should also work in a single step.
Expected behaviour
I expect the GitHub Actions workflow to successfully build Docker images for both
linux/amd64
andlinux/arm64
platforms using Docker Buildx.Actual behaviour
Currently, when executing the GitHub Actions workflow, Docker Buildx fails with the following error:
As a result, Docker images are not successfully built for the specified platforms (
linux/amd64
andlinux/arm64
).Repository URL
https://github.com/eclipse-aaspe/server
Workflow run URL
https://github.com/eclipse-aaspe/server/actions/runs/9677083504/job/26697984290?pr=308
YAML workflow
Workflow logs
logs_25329296674.zip
BuildKit logs
No response
Additional info
No response