mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-11 14:13:56 +00:00
Use Docker Buildx for multi-arch builds
The bitwarden_rs code is still cross-compiled exactly as before, but Docker Buildx is used to rewrite the resulting Docker images with correct platform metadata (reflecting the target platform instead of the build platform). Buildx also now handles building and pushing the multi-arch manifest lists.
This commit is contained in:
parent
175f2aeace
commit
5633b6ac94
11 changed files with 183 additions and 114 deletions
|
@ -9,6 +9,6 @@ set -ex
|
|||
for arch in "${arches[@]}"; do
|
||||
docker build \
|
||||
-t "${DOCKER_REPO}:${DOCKER_TAG}-${arch}" \
|
||||
-f docker/${arch}/Dockerfile${os_suffix} \
|
||||
-f docker/${arch}/Dockerfile${distro_suffix} \
|
||||
.
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue