RafikFarhad / push-to-gcr-github-action

An action that build docker image and push to Google Cloud Registry and Google Artifact Registry.
MIT License
68 stars 37 forks source link

not working :( #4

Closed johnjjung closed 3 years ago

johnjjung commented 3 years ago

Screen Shot 2020-12-06 at 5 27 04 PM

base64'd the service account json

Would be great if you could provide better instructions on iam permissions necessary (I gave it storage admin and object viewer)

RafikFarhad commented 3 years ago

Hey @johnjjung, I am using the following permissions for the service account attached to this github-action.

Screenshot 2020-12-07 at 12 32 03 PM

I think the problem is in the object-viewer permission. Your service account needs object-admin permission in order to push docker image. Let me know if you can solve the problem.

And thanks for pointing out that our documentation needs to be more clear. We are updating it.

RafikFarhad commented 3 years ago

Hey @johnjjung, did the above advice solve your problem? If not then please reopen the issue.