Synapse : image to gitea?
This commit is contained in:
parent
e6a5b8168c
commit
b3af292266
|
@ -11,6 +11,7 @@ matrix:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- cd podman-matrix
|
- cd podman-matrix
|
||||||
|
- ./ci_build-images.sh
|
||||||
- GARBAYE_MATRIX_POSTGRES_PASSWORD=WHATEVERCIDBPASSWORD GARBAYE_MATRIX_ENV_LISTENPORT=18086 ./05_freshinstall.sh
|
- GARBAYE_MATRIX_POSTGRES_PASSWORD=WHATEVERCIDBPASSWORD GARBAYE_MATRIX_ENV_LISTENPORT=18086 ./05_freshinstall.sh
|
||||||
- ./20_enable.sh
|
- ./20_enable.sh
|
||||||
- ./30_start.sh && sleep 10
|
- ./30_start.sh && sleep 10
|
||||||
|
|
|
@ -15,7 +15,7 @@ if podman volume exists ${confvolume} || podman volume exists ${dbvolume}; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source ${ABSDIR}/zz_build-images.sh &&
|
podman image pull ${synapse_image}:${synapse_version} &&
|
||||||
podman image exists ${synapse_image}:${synapse_version} &&
|
podman image exists ${synapse_image}:${synapse_version} &&
|
||||||
podman volume create ${confvolume} &&
|
podman volume create ${confvolume} &&
|
||||||
podman volume create ${dbvolume} &&
|
podman volume create ${dbvolume} &&
|
||||||
|
|
|
@ -20,7 +20,8 @@ if ! podman volume exists ${dbvolume} ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
source ${ABSDIR}/zz_build-images.sh &&
|
podman image pull ${synapse_image}:${synapse_version} &&
|
||||||
|
podman image exists ${synapse_image}:${synapse_version} &&
|
||||||
podman pull ${postgres_image}:${postgres_version} &&
|
podman pull ${postgres_image}:${postgres_version} &&
|
||||||
podman pod create --publish ${listen_if}:${listen_port}:8008 --name ${pod_name} &&
|
podman pod create --publish ${listen_if}:${listen_port}:8008 --name ${pod_name} &&
|
||||||
podman run -d --name ${db_container_name} --pod ${pod_name} \
|
podman run -d --name ${db_container_name} --pod ${pod_name} \
|
||||||
|
|
|
@ -23,4 +23,8 @@ if ! podman image exists ${synapse_image}:${synapse_version}; then
|
||||||
podman rmi docker.io/moby/buildkit:latest
|
podman rmi docker.io/moby/buildkit:latest
|
||||||
}
|
}
|
||||||
rm -rf ${buildfolder}
|
rm -rf ${buildfolder}
|
||||||
fi
|
else
|
||||||
|
echo "Image ${synapse_image}:${synapse_version} already built"
|
||||||
|
fi &&
|
||||||
|
|
||||||
|
oci_push_to_registry ${synapse_image}:${synapse_version}
|
|
@ -3,7 +3,7 @@
|
||||||
pod_name='podman-matrix'
|
pod_name='podman-matrix'
|
||||||
service_name="pod-${pod_name}.service"
|
service_name="pod-${pod_name}.service"
|
||||||
#version='latest'
|
#version='latest'
|
||||||
synapse_image="localhost/matrixdotorg/synapse"
|
synapse_image="git.garbaye.fr/garbaye/matrixdotorg-synapse"
|
||||||
synapse_version='v1.63.1'
|
synapse_version='v1.63.1'
|
||||||
postgres_image="docker.io/library/postgres"
|
postgres_image="docker.io/library/postgres"
|
||||||
postgres_version='11.14'
|
postgres_version='11.14'
|
||||||
|
|
Loading…
Reference in a new issue