1
0
Fork 0
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:
Daniel García 2020-08-19 00:02:14 +02:00
parent 0365b7c6a4
commit 4c324e1160
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
17 changed files with 50 additions and 872 deletions

View file

@ -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

View file

@ -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