mirror of
https://github.com/dani-garcia/bitwarden_rs
synced 2024-11-25 19:30:40 +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.
17 lines
322 B
Bash
17 lines
322 B
Bash
# The default Debian-based images support these arches for all database backends.
|
|
arches=(
|
|
amd64
|
|
armv6
|
|
armv7
|
|
arm64
|
|
)
|
|
|
|
if [[ "${DOCKER_TAG}" == *alpine ]]; then
|
|
# The Alpine image build currently only works for certain arches.
|
|
distro_suffix=.alpine
|
|
arches=(
|
|
amd64
|
|
armv7
|
|
)
|
|
fi
|