Spiegel von
https://github.com/dani-garcia/vaultwarden.git
synchronisiert 2024-11-26 05:50:29 +01:00
5633b6ac94
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.
14 Zeilen
260 B
Bash
Ausführbare Datei
14 Zeilen
260 B
Bash
Ausführbare Datei
#!/bin/bash
|
|
|
|
echo ">>> Building images..."
|
|
|
|
source ./hooks/arches.sh
|
|
|
|
set -ex
|
|
|
|
for arch in "${arches[@]}"; do
|
|
docker build \
|
|
-t "${DOCKER_REPO}:${DOCKER_TAG}-${arch}" \
|
|
-f docker/${arch}/Dockerfile${distro_suffix} \
|
|
.
|
|
done
|