mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-11 06:03:57 +00:00
Change Dockerfiles to make the AMD image multidb
This commit is contained in:
parent
0365b7c6a4
commit
4c324e1160
17 changed files with 50 additions and 872 deletions
|
@ -11,16 +11,11 @@ arches=(
|
|||
|
||||
case "${DOCKER_REPO}" in
|
||||
*-mysql)
|
||||
db=mysql
|
||||
arches=(amd64)
|
||||
;;
|
||||
*-postgresql)
|
||||
db=postgresql
|
||||
arches=(amd64)
|
||||
;;
|
||||
*)
|
||||
db=sqlite
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${DOCKER_TAG}" == *alpine ]]; then
|
||||
|
|
|
@ -9,6 +9,6 @@ set -ex
|
|||
for arch in "${arches[@]}"; do
|
||||
docker build \
|
||||
-t "${DOCKER_REPO}:${DOCKER_TAG}-${arch}" \
|
||||
-f docker/${arch}/${db}/Dockerfile${os_suffix} \
|
||||
-f docker/${arch}/Dockerfile${os_suffix} \
|
||||
.
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue