ci(gitlab-ci): use wget instead of curl
This commit is contained in:
parent
90ab22ce16
commit
ee933de99f
@ -86,7 +86,8 @@ setup:containers:frontend: &setup-container
|
|||||||
- IMAGE_TAG=${IMAGE_TYPE}/${CI_COMMIT_REF_SLUG}:${IMAGE_VERSION}
|
- IMAGE_TAG=${IMAGE_TYPE}/${CI_COMMIT_REF_SLUG}:${IMAGE_VERSION}
|
||||||
- REGISTRY_DESTINATION=${CI_REGISTRY_IMAGE}/${IMAGE_TYPE}/${CI_COMMIT_REF_SLUG}:${IMAGE_VERSION}
|
- REGISTRY_DESTINATION=${CI_REGISTRY_IMAGE}/${IMAGE_TYPE}/${CI_COMMIT_REF_SLUG}:${IMAGE_VERSION}
|
||||||
script:
|
script:
|
||||||
- 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
|
- 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
|
||||||
|
- cat wget.log
|
||||||
- IMAGE_EXISTS=`grep \""${REGISTRY_DESTINATION}"\" .gitlab-ci/.container-registry-contents.json`
|
- IMAGE_EXISTS=`grep \""${REGISTRY_DESTINATION}"\" .gitlab-ci/.container-registry-contents.json`
|
||||||
- cat .gitlab-ci/.container-registry-contents.json
|
- cat .gitlab-ci/.container-registry-contents.json
|
||||||
- test "${CI_JOB_MANUAL}" = true && echo "Force rebuilding container."
|
- test "${CI_JOB_MANUAL}" = true && echo "Force rebuilding container."
|
||||||
|
|||||||
Reference in New Issue
Block a user