-
Notifications
You must be signed in to change notification settings - Fork 1
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
Remove preview docker images when closing PR #17
Conversation
We'll wait 🐌 |
Update: See this action for deleting packages: Also it doesn't support deleting docker images: Perhaps this one is worth checking out?: Also another related bug: When packages appear in api graphql response, we'll probably manage to delete them. Conclusion for now: |
I'm facing the same problem and I'll probably use this: Found via: |
* main: [Security] Bump redis from 3.0.2 to 3.1.2 (#31) skip ci [Security] Bump lodash from 4.17.19 to 4.17.21 (#33) skip ci [Security] Bump hosted-git-info from 2.8.5 to 2.8.9 (#34) skip ci Rename default preview namespace to preview remove preview url Thomastvedt/fix zero version (#30) Update index.js.map Change tag postfix format Thomastvedt/docker push fix (#28) Delete dependabot.yml Bump typescript from 4.1.3 to 4.1.4 (#27) Bump @typescript-eslint/parser from 4.14.2 to 4.15.0 (#25) Bump @types/node from 14.14.24 to 14.14.25 (#24) Add wait flag as default (#23) Update README.md Bump @typescript-eslint/parser from 4.14.1 to 4.14.2 (#18) Bump @types/node from 14.14.22 to 14.14.24 (#22) Add support for overriding extra helm values (#19) Bump eslint from 7.18.0 to 7.19.0 (#16) # Conflicts: # action.yml # dist/index.js # dist/index.js.map # src/common.ts # src/main.ts
https://github.com/marketplace/actions/ghcr-delete-image test this one? |
Closes #14
We're using GHCR - Github container registry which is currently in beta. I was planning to delete images using Github GraphQL API, but this is not supported yet by GHCR 😞
Delete container image (ghcr beta): https://docs.github.com/en/packages/guides/deleting-a-container-image
Quote:
No packages returned by Github API:

One last thing to try:
can we use standard docker commands to delete image?
=> nope...
Apparently this feature is coming soon, hopefully by the end of (last) month? 😉
https://github.community/t/are-there-plans-to-support-deletions-of-images-in-ghcr/153728
But we’re working on a delete API that could be used on PR merge. Hoping to have this out by end of month.
@ralftar :
I guess we'll just have to wait for this feature to be released? Or switch to another package registry? Or try to "hack it" using the same http requests as the Github UI (but I want to wait..)