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

test

parent b3531c53
No related branches found
No related tags found
No related merge requests found
Pipeline #6709 passed with warnings
......@@ -27,7 +27,7 @@ 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)"
RESULT="$curl -H "${CONTENT_TYPE}" -H "Authorization: Bearer ${TOKEN}" "${REGISTRY_SCHEMA:-https}://${CI_REGISTRY}/v2/${IMAGE_PATH}/manifests/${REGISTRY_TAG_OLD}")"
RESULT="$(curl -H "${CONTENT_TYPE}" -H "Authorization: Bearer ${TOKEN}" "${REGISTRY_SCHEMA:-https}://${CI_REGISTRY}/v2/${IMAGE_PATH}/manifests/${REGISTRY_TAG_OLD}")"
echo ${RESULT}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment