Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled error cleaning up build images. This could result in a small monthly bill if not corrected. #173

Open
jahirfiquitiva opened this issue Dec 20, 2022 · 2 comments

Comments

@jahirfiquitiva
Copy link

Hello, I'm getting the following error when using the action with just deploy --only functions

Unhandled error cleaning up build images. This could result in a small monthly bill if not corrected. You can attempt to delete these images by redeploying or you can delete them manually

Would you mind looking into it or how can I fix it?
Thanks in advance!

@ViloCat
Copy link

ViloCat commented Jan 14, 2023

I'm having this issue too, and couldn't figure out how to solve it after a lot of research.

@kallsbo
Copy link

kallsbo commented Jan 19, 2023

So there are two parts to this. As you can see in the complete error message it refers to two locations for the manual cleanup. This is due to a lack of permissions for the github-action service account.

  1. Add Artifact Registry Administrator role to your github-action account - docs: https://cloud.google.com/artifact-registry/docs/access-control
  2. Has to do with how the Cloud Build creates the containers, not really sure exactly but after some testing I added the Cloud Build Service Account role to the github-action account and now everything works without warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants