-
Notifications
You must be signed in to change notification settings - Fork 55
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
GHCR: actions/delete-package-versions@v4 #6757
Conversation
… in GitHub Actions
8d355ab
to
e706edc
Compare
Kudos, SonarCloud Quality Gate passed! |
with: | ||
package-name: 'backend' | ||
package-type: 'container' | ||
min-versions-to-keep: 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(for my own knowledge 😅) if we are only deleting untagged versions is there a reason we need to keep a minimum of 10 versions of them? 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have a good reason except that I want to see the arguments at work. 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that sounds good to me! I would also like to see that too! 😹
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
I went here to see how many untagged images for particular containers we have
https://github.com/orgs/CDCgov/packages?ecosystem=container&tab=packages&ecosystem=container&q=prime-simplereport
Some I couldn't even load the page like frontend
container since I am assuming we have so many images 😅
I was able to open frontend-lighthouse
: https://github.com/CDCgov/prime-simplereport/pkgs/container/prime-simplereport%2Ffrontend-lighthouse/versions?filters%5Bversion_type%5D=tagged
Based on this PR, after it is merged, I should only see tagged ones left and 10 of the last untagged images right?
That's exactly what I would expect after this is merged and runs at the scheduled time. |
Awesome I will keep my eyes out for this 👀 |
@alismx following up on this -- I'm seeing this is failing: https://github.com/CDCgov/prime-simplereport/actions/runs/6634378624/job/18023713248 |
@emyl3 Thank you for calling this out! I'm planning on looking into it today. |
DEVOPS PULL REQUEST
Related Issue
Changes Proposed
Additional Information
actions/delete-package-versions@v4
allows us to delete container images without needing a personal access token. Previously, we were using thesnok/container-retention-policy@v2
action, which wouldn't work without a PAT.delete-package-versions
folks.Testing
Checklist for Primary Reviewer
Infrastructure
terraform-plan
job inside the "Terraform Checks" workflow run for this PR. Confirm that there are no unexpected changes!Security
Cloud
test
,dev
, orpentest
environment for verificationDocumentation