Skip to content
Snippets Groups Projects
Commit 4917b0f0 authored by Dmitriy Safronov's avatar Dmitriy Safronov
Browse files

test

parent 1141f6b3
No related branches found
No related tags found
No related merge requests found
Pipeline #6706 passed with warnings
......@@ -27,4 +27,4 @@ CONTENT_TYPE="application/vnd.docker.distribution.manifest.v2+json"
TOKEN="$(curl --user "${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD}" "${SERVER_HOST_SCHEMA:-https}://${CI_SERVER_HOST}/jwt/auth?offline_token=true&service=container_registry&scope=repository:${CI_PROJECT_PATH}:push,pull" | jq -r .token)"
curl -H "${CONTENT_TYPE}" -H "Authorization: Bearer ${TOKEN}" "${REGISTRY_SCHEMA:-https}://${CI_REGISTRY}/v2/${IMAGE_PATH}/manifests/${REGISTRY_TAG_OLD}" || exit 1
curl -H "${CONTENT_TYPE}" -H "Authorization: Bearer ${TOKEN}" "${REGISTRY_SCHEMA:-https}://${CI_REGISTRY}/v2/${IMAGE_PATH}/manifests/${REGISTRY_TAG_OLD}" | jq -r .errors.code
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment