vaultwarden : 1.30.3 fix?

This commit is contained in:
Gitouche 2024-02-16 21:10:07 +01:00
parent 835d868083
commit 8b20c4e45c
2 changed files with 3 additions and 7 deletions

View file

@ -11,12 +11,8 @@ buildfolder=/tmp/vaultwarden-$$
if ! podman image exists ${service_image}:${service_version}; then if ! podman image exists ${service_image}:${service_version}; then
mkdir ${buildfolder} && mkdir ${buildfolder} &&
if git clone --depth=1 --branch=${service_version} https://github.com/dani-garcia/vaultwarden.git ${buildfolder}/ ; then if git clone --depth=1 --branch=${service_version%%-*} https://github.com/dani-garcia/vaultwarden.git ${buildfolder}/ ; then
TMPDIR=${HOME} podman image build \ TMPDIR=${HOME} DB='postgresql,enable_mimalloc' CONTAINER_REGISTRIES='git.garbaye.fr/garbaye/vaultwarden' BASE_TAGS=${service_version%%-*} ${buildfolder}/docker/podman-bake.sh || retval=false
-t ${service_image}:${service_version} \
--build-arg DB=postgresql,enable_mimalloc \
-f ${buildfolder}/docker/Dockerfile.debian \
${buildfolder} || retval=false
podman image prune -a -f --filter dangling=true podman image prune -a -f --filter dangling=true
podman image prune -a -f --filter intermediate=true podman image prune -a -f --filter intermediate=true
podman image rm -f $(podman image list -a -q -- vaultwarden/web-vault) podman image rm -f $(podman image list -a -q -- vaultwarden/web-vault)

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
## vars ## vars
service_image="git.garbaye.fr/garbaye/vaultwarden" service_image="git.garbaye.fr/garbaye/vaultwarden"
service_version='1.30.3' service_version='1.30.3-amd64'
database_image="docker.io/library/postgres" database_image="docker.io/library/postgres"
database_version='14-alpine' database_version='14-alpine'
database_path="/var/lib/postgresql/data" database_path="/var/lib/postgresql/data"