ci(gitlab-ci): fix syntax

This commit is contained in:
Sarah Vaupel 2024-09-04 04:24:47 +02:00
parent 3c71388a32
commit 597a611f58

View File

@ -89,7 +89,7 @@ setup:containers:frontend:
- IMAGE_EXISTS=`curl "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/registry/repositories?tags=true" | grep \""${REGISTRY_DESTINATION}"\"`
- ${FORCE_REBUILD_IMAGE} && echo "Force rebuilding container."
- >
if [[ ${IMAGE_EXISTS} -a ! ${FORCE_REBUILD_IMAGE} ]]; then
if [[ ${IMAGE_EXISTS} && ! ${FORCE_REBUILD_IMAGE} ]]; then
echo "Image ${IMAGE_TAG} already exists in the container registry. Skipping build."
else
echo "Building image..."