Pass credentials to skopeo inspect
I'm trying to use ci-templates
on an internal gitlab instance. It's all good except that my image is rebuild at each pipeline run because of skopeo inspect
inspect failing with "Requesting bear token: invalid status code from registry 403 (Forbidden)". As a result the script assumes the image does not exist and so trigger a full image build.
An easy fix seems to pass --creds=$CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD
to skopeo inspect
calls. Would that be ok?