ci: Make docker pull images optional

pull/775/head
cruizba 2022-12-27 17:15:18 +01:00
parent f962160c91
commit ed418a205f
1 changed files with 22 additions and 6 deletions

View File

@ -45,14 +45,30 @@ if [[ "${PREPARE}" == true || "${EXECUTE_ALL}" == true ]]; then
docker network connect bridge "${E2E_CONTAINER_ID}"
# Pull browser images
# Pull chrome image if env variable CHROME_VERSION is set
if [[ -n "${CHROME_VERSION:-}" ]]; then
docker pull selenium/standalone-chrome:"${CHROME_VERSION}"
fi
# Pull firefox image if env variable FIREFOX_VERSION is set
if [[ -n "${FIREFOX_VERSION:-}" ]]; then
docker pull selenium/standalone-firefox:"${FIREFOX_VERSION}"
fi
# Pull opera image if env variable OPERA_VERSION is set
if [[ -n "${OPERA_VERSION:-}" ]]; then
docker pull selenium/standalone-opera:"${OPERA_VERSION}"
fi
# Pull edge image if env variable EDGE_VERSION is set
if [[ -n "${EDGE_VERSION:-}" ]]; then
docker pull selenium/standalone-edge:"${EDGE_VERSION}"
fi
# Pull mediasoup and kurento
if [[ -n "${MEDIASOUP_CONTROLLER_VERSION:-}" ]]; then
docker pull openvidu/mediasoup-controller:"${MEDIASOUP_CONTROLLER_VERSION}"
fi
if [[ -n "${KURENTO_MEDIA_SERVER_IMAGE:-}" ]]; then
docker pull "${KURENTO_MEDIA_SERVER_IMAGE}"
fi
# Prepare directory Openvidu
sudo mkdir -p /opt/openvidu/recordings && sudo chmod 777 /opt/openvidu/recordings