Skip to content
Snippets Groups Projects
Commit ebbc0ff7 authored by Gilles Filippini's avatar Gilles Filippini
Browse files

ci: enable multiplatform builds with docker buildx

* Build from the Dockerfile and copy the artifacts from the resulting
  image
* Use cross-compilation at build stage when building for a foreign architecture
* Use 'docker buildx build ...' in CI to enable multiplatform builds
  If buildx is not installed use:
    DOCKER_BUILDKIT=1 docker build ...
* Gilab runner must expose tag 'multiplatform' which means it has native
  amd64 arch + emulated arm64 support:
    https://github.com/tonistiigi/binfmt/tree/deploy/v7.0.0-28#installing-emulators
    $ docker run --privileged --rm tonistiigi/binfmt --install arm64
parent 46fdd26c
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment