Matrix : handle image buiding errors

This commit is contained in:
Gitouche 2022-03-05 14:16:15 +01:00
parent a04aefcac2
commit 8e19d6a9ab
2 changed files with 2 additions and 0 deletions

View file

@ -1,6 +1,7 @@
before_script: before_script:
- podman pod exists podman-matrix && podman pod rm --force podman-matrix - podman pod exists podman-matrix && podman pod rm --force podman-matrix
- podman container exists synapse-generate && podman container rm --force synapse-generate - podman container exists synapse-generate && podman container rm --force synapse-generate
- podman container exists buildkitd && podman container rm --force buildkitd
- rm -f ~/.config/systemd/user/pod-podman-matrix.service && systemctl --user daemon-reload - rm -f ~/.config/systemd/user/pod-podman-matrix.service && systemctl --user daemon-reload
- podman volume exists matrixdotorg_synapse-data && podman volume rm matrixdotorg_synapse-data - podman volume exists matrixdotorg_synapse-data && podman volume rm matrixdotorg_synapse-data
- podman volume exists matrixdotorg_synapse-pgsql && podman volume rm matrixdotorg_synapse-pgsql - podman volume exists matrixdotorg_synapse-pgsql && podman volume rm matrixdotorg_synapse-pgsql

View file

@ -16,6 +16,7 @@ if podman volume exists ${confvolume} || podman volume exists ${dbvolume}; then
fi fi
source ${ABSDIR}/zz_build-images.sh && source ${ABSDIR}/zz_build-images.sh &&
podman image exists ${synapse_image}:${synapse_version} &&
podman volume create ${confvolume} && \ podman volume create ${confvolume} && \
podman volume create ${dbvolume} && \ podman volume create ${dbvolume} && \
podman run -it --name ${container_name}-generate --mount type=volume,src=${confvolume},dst=/data -e SYNAPSE_SERVER_NAME=${GARBAYE_MATRIX_DOMAIN} -e SYNAPSE_REPORT_STATS=no ${synapse_image}:${synapse_version} generate && \ podman run -it --name ${container_name}-generate --mount type=volume,src=${confvolume},dst=/data -e SYNAPSE_SERVER_NAME=${GARBAYE_MATRIX_DOMAIN} -e SYNAPSE_REPORT_STATS=no ${synapse_image}:${synapse_version} generate && \