diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5e3c11819..450c018c6 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -86,8 +86,7 @@ setup:containers:frontend: &setup-container - IMAGE_TAG=${IMAGE_TYPE}/${CI_COMMIT_REF_SLUG}:${IMAGE_VERSION} - REGISTRY_DESTINATION=${CI_REGISTRY_IMAGE}/${IMAGE_TYPE}/${CI_COMMIT_REF_SLUG}:${IMAGE_VERSION} script: - - yum install wget -y - - wget --header "PRIVATE-TOKEN:${REGISTRY_AUTH_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/registry/repositories?tags=true" -o wget.log -O .gitlab-ci/.container-registry-contents.json + - curl --request GET --header "PRIVATE-TOKEN:${REGISTRY_AUTH_TOKEN}" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/registry/repositories?tags=true" > .gitlab-ci/.container-registry-contents.json - IMAGE_EXISTS=`grep \""${REGISTRY_DESTINATION}"\" .gitlab-ci/.container-registry-contents.json || :` - test "${CI_JOB_MANUAL}" = true && echo "Force rebuilding container." - > @@ -114,6 +113,7 @@ setup:containers:frontend:wait: &setup-container-wait echo "Waiting for container ${IMAGE_TAG} to appear in the container registry..." sleep 5 done + - echo "Image ${IMAGE_TAG} has been found in the container registry. Proceeding with the pipeline." rules: - if: $CI_MERGE_REQUEST_ID when: always