diff --git a/ci/registry_cleanup.sh b/ci/registry_cleanup.sh index c5a25e6a57578714301e40a55e67d1794e3ebd02..c54b00078cfcbe321446a999c5d2fc292ea01d58 100755 --- a/ci/registry_cleanup.sh +++ b/ci/registry_cleanup.sh @@ -2,7 +2,7 @@ PROJECT_NAME="cspp_geo%2Fcspp-geo-web-viewer" PROJ_URL="${CI_API_V4_URL}/projects/${PROJECT_NAME}" -registries_json=$(curl -H "PRIVATE_TOKEN: ${CI_JOB_TOKEN}" "${PROJ_URL}/registry/repositories") +registries_json=$(curl -H "PRIVATE_TOKEN: ${API_TOKEN}" "${PROJ_URL}/registry/repositories") if [[ $? -ne 0 ]]; then echo "Could not download list of container registries" exit 1