Closed Dev-Destructor closed 8 months ago
@Dev-Destructor - doesn't look like the workflow you shared uses this action (mr-smithers-excellent/docker-build-push
). Can you confirm you're using this action?
I fixed the issue, never mind, turned out it was with Artifact Registry itself.
I have using it for the past few months. I was GCR previously but now it's being deprecated I had to switch. This is the code I am using
And getting error
Error: buildx failed with: ERROR: failed to solve: failed to push asia-south2-docker.pkg.dev/***: failed to authorize: failed to fetch anonymous token: unexpected status from GET request to https://asia-south2-docker.pkg.dev/v2/token?scope=repository***&service=asia-south2-docker.pkg.dev: 403 Forbidden
but using the similar script instead of
asia-south2-docker.pkg.dev
if I usegcr.io
it worksNote:- To check if it is an issue with my GCP service account I used it on my docker locally and I was working. Permissions:-