Matrix image build : added some &&

This commit is contained in:
Gitouche 2022-03-05 13:01:07 +01:00
parent a0d11e2a67
commit ab3bb7bb27

View file

@ -21,8 +21,8 @@ if ! podman image exists localhost/matrixdotorg/synapse:${synapse_version}; then
--local dockerfile=${buildfolder}/docker/ \
--output type=oci,name="fixme:synapse_${synapse_version}" | \
podman load &&
podman image tag localhost/synapse_${synapse_version}:latest ${synapse_image}:${synapse_version}
podman image rm localhost/synapse_${synapse_version}:latest
podman image tag localhost/synapse_${synapse_version}:latest ${synapse_image}:${synapse_version} &&
podman image rm localhost/synapse_${synapse_version}:latest &&
podman rm --force buildkitd &&
podman rmi docker.io/moby/buildkit:latest &&
rm -f ~/bin/buildctl