ci(gitlab-ci): fix curl

This commit is contained in:
Sarah Vaupel 2024-09-04 05:17:41 +02:00
parent b5f2f4ff0e
commit be75627bc0

View File

@ -86,7 +86,7 @@ setup:containers:frontend:
- FRONTEND_IMAGE_VERSION=`cat frontend-image-version`
- IMAGE_TAG=frontend/${CI_COMMIT_REF_SLUG}:${FRONTEND_IMAGE_VERSION}
- REGISTRY_DESTINATION=${CI_REGISTRY_IMAGE}/frontend/${CI_COMMIT_REF_SLUG}:${FRONTEND_IMAGE_VERSION}
- IMAGE_EXISTS=`curl "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/registry/repositories?tags=true" | grep \""${REGISTRY_DESTINATION}"\"`
- IMAGE_EXISTS=`curl --request GET --header "PRIVATE-TOKEN:${CI_JOB_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/registry/repositories?tags=true" | grep \""${REGISTRY_DESTINATION}"\"`
- echo ${IMAGE_EXISTS}
- echo ${CI_JOB_MANUAL}
- test ${CI_JOB_MANUAL} == true && echo "Force rebuilding container."