i have been having this issue lately when i am trying to deploy a new version of the app
the pipeline fails because it cannot push the image that was just created to the registry.
we are using GCP as the registry.
+ docker push eu.gcr.io/$GCP_PROJECT_ID/webapp:$BITBUCKET_COMMIT
The push refers to repository [eu.gcr.io/$GCP_PROJECT_ID/webapp]
5cc2bfc009e2: Preparing
.....
10791dd0d7c7: Waiting
denied: Access denied.
the weird thing is that logging in to docker seems to work
+ cat keyfile.json | docker login -u _json_key --password-stdin https://eu.gcr.io
WARNING! Your password will be stored unencrypted
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded