privatebin: maj pour evolution

This commit is contained in:
Gitouche 2024-12-21 20:47:39 +01:00
parent ac1bb8f6f9
commit 0acc049aa7
2 changed files with 4 additions and 3 deletions

View file

@ -13,8 +13,9 @@ if ! podman image exists ${privatebin_image}:${privatebin_version}; then
if git clone -b ${privatebin_version} --depth=1 https://github.com/PrivateBin/docker-nginx-fpm-alpine ${buildfolder} ; then
sed -i "s#mv cfg lib tpl vendor /srv#mv cfg lib tpl vendor /srv \&\& sed -i \\'/Content-Security-Policy\\\|X-XSS-Protection\\\|X-Frame-Options\\\|X-Content-Type-Options/d\\' /srv/lib/Controller.php#" ${buildfolder}/Dockerfile &&
TMPDIR=${HOME} podman image build \
-t "${privatebin_image}":"${privatebin_version}" \
${buildfolder} || retval=false
--label "org.opencontainers.image.revision=$(cd ${buildfolder} ; git rev-parse HEAD)" \
-t "${privatebin_image}":"${privatebin_version}" \
${buildfolder} || retval=false
podman image prune -a -f --filter dangling=true
podman image prune -a -f --filter intermediate=true
podman image rm -f $(podman image list -a -q -- docker.io/library/alpine)

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
## vars
privatebin_image="git.garbaye.fr/garbaye/privatebin-nginx-fpm-alpine"
privatebin_version='1.7.5-alpine3.20.3'
privatebin_version='1.7.5-alpine3.21'
## default vars : override with ENV var
listen_if="${GARBAYE_PRIVATEBIN_ENV_LISTENIF:-127.0.0.1}"
listen_port="${GARBAYE_PRIVATEBIN_ENV_LISTENPORT:-8084}"