Use new container registry tag delete endpoint
Context
Related to Delete request to manifest tag should return 20... (container-registry#1091 - closed). Blocks Remove DELETE /v2/<name>/tags/reference/<tag> A... (container-registry#1095 - closed).
Task
We're currently relying on the Container Registry DELETE /v2/<name>/tags/reference/<tag>
internal API endpoint to delete tags from the Rails application (UI/API). This endpoint has been deprecated and replaced with a new one: DELETE /v2/<name>/manifests/<tag>
. The functionality is exactly the same, and so is the input (tag name) and output (OK/NOK). This change was made to achieve compliance with the OCI Distribution Spec.
We now need to use the new endpoint to delete tags from Rails, as we'll remove the former endpoint from the registry by %17.0.