build image script : suppression des quotes - mauvais comportement
This commit is contained in:
parent
abcf7edccd
commit
8c27efdba9
|
@ -19,8 +19,8 @@ if ! podman image exists ${gitea_image}:${gitea_version}; then
|
||||||
-f ${buildfolder}/Dockerfile ${buildfolder} || retval=false
|
-f ${buildfolder}/Dockerfile ${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 -- docker.io/library/golang)"
|
podman image rm -f $(podman image list -a -q -- docker.io/library/golang)
|
||||||
podman image rm -f "$(podman image list -a -q -- docker.io/library/alpine)"
|
podman image rm -f $(podman image list -a -q -- docker.io/library/alpine)
|
||||||
fi
|
fi
|
||||||
rm -rf ${buildfolder}
|
rm -rf ${buildfolder}
|
||||||
eval "$retval"
|
eval "$retval"
|
||||||
|
|
|
@ -17,7 +17,7 @@ if ! podman image exists ${hedgedoc_image}:${hedgedoc_version}; then
|
||||||
rm -rf ${buildfolder}
|
rm -rf ${buildfolder}
|
||||||
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 -- docker.io/library/node)"
|
podman image rm -f $(podman image list -a -q -- docker.io/library/node)
|
||||||
eval "$retval"
|
eval "$retval"
|
||||||
else
|
else
|
||||||
echo "Image ${hedgedoc_image}:${hedgedoc_version} already built"
|
echo "Image ${hedgedoc_image}:${hedgedoc_version} already built"
|
||||||
|
|
|
@ -11,8 +11,8 @@ if ! podman image exists ${ntfy_image}:${ntfy_version}; then
|
||||||
TMPDIR=${HOME} podman image build -t "${ntfy_image}:${ntfy_version}" container/ --build-arg NTFY_VERSION=${ntfy_version} || exit 1
|
TMPDIR=${HOME} podman image build -t "${ntfy_image}:${ntfy_version}" container/ --build-arg NTFY_VERSION=${ntfy_version} || exit 1
|
||||||
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 -- docker.io/library/golang)"
|
podman image rm -f $(podman image list -a -q -- docker.io/library/golang)
|
||||||
podman image rm -f "$(podman image list -a -q -- docker.io/library/alpine)"
|
podman image rm -f $(podman image list -a -q -- docker.io/library/alpine)
|
||||||
else
|
else
|
||||||
echo "Image ${ntfy_image}:${ntfy_version} already built"
|
echo "Image ${ntfy_image}:${ntfy_version} already built"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -18,7 +18,7 @@ if ! podman image exists ${upstream_images}:${version}; then
|
||||||
--label org.opencontainers.image.title='PeerServer' \
|
--label org.opencontainers.image.title='PeerServer' \
|
||||||
--label org.opencontainers.image.url='https://peerjs.com' \
|
--label org.opencontainers.image.url='https://peerjs.com' \
|
||||||
-t ${upstream_images}:${version} ${buildfolder}/ || retval=false
|
-t ${upstream_images}:${version} ${buildfolder}/ || retval=false
|
||||||
podman image rm -f "$(podman image list -a -q -- docker.io/library/node)"
|
podman image rm -f $(podman image list -a -q -- docker.io/library/node)
|
||||||
rm -rf ${buildfolder}
|
rm -rf ${buildfolder}
|
||||||
eval "$retval"
|
eval "$retval"
|
||||||
else
|
else
|
||||||
|
|
|
@ -21,7 +21,7 @@ if ! podman image exists ${seafile_image}:${seafile_release}; then
|
||||||
podman image build -t ${seafile_image}:${seafile_release} \
|
podman image build -t ${seafile_image}:${seafile_release} \
|
||||||
-f ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile \
|
-f ${buildfolder}/image/seafile_${seafile_release%.*}/Dockerfile \
|
||||||
${buildfolder} || retval=false
|
${buildfolder} || retval=false
|
||||||
podman image rm -f "$(podman image list -a -q -- phusion/baseimage)"
|
podman image rm -f $(podman image list -a -q -- phusion/baseimage)
|
||||||
fi
|
fi
|
||||||
rm -rf ${buildfolder}
|
rm -rf ${buildfolder}
|
||||||
eval "$retval"
|
eval "$retval"
|
||||||
|
|
|
@ -21,9 +21,9 @@ if ! podman image exists ${service_image}:${service_version}; then
|
||||||
rm -rf ${buildfolder}
|
rm -rf ${buildfolder}
|
||||||
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)
|
||||||
podman image rm -f "$(podman image list -a -q -- docker.io/blackdex/rust-musl)"
|
podman image rm -f $(podman image list -a -q -- docker.io/blackdex/rust-musl)
|
||||||
podman image rm -f "$(podman image list -a -q -- docker.io/library/alpine)"
|
podman image rm -f $(podman image list -a -q -- docker.io/library/alpine)
|
||||||
eval "$retval"
|
eval "$retval"
|
||||||
else
|
else
|
||||||
echo "Image ${service_image}:${service_version} already built"
|
echo "Image ${service_image}:${service_version} already built"
|
||||||
|
|
Loading…
Reference in a new issue