-
Notifications
You must be signed in to change notification settings - Fork 0
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
Migrate cleanup workflow to GitHub Actions #55
Conversation
062bcca
to
4f7d413
Compare
fa582a2
to
7b9f327
Compare
The `clean-old-packages` script was adapted from the `securedrop-builder` repository and originally written by Kunal Mehta.
7b9f327
to
4f7d904
Compare
(I believe this is ready for a review pass anytime, but I'll open a cleanup PR to remove the migrated job on |
This script is run in CI in a Fedora container. You can spin up a similar | ||
container locally using podman or docker, e.g.: | ||
|
||
podman run -it --rm -v $(pwd):/workspace:Z fedora:39 bash |
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.
Probably the trickiest part was to get the script running locally on a non-Fedora system, so I added this to help with bootstrapping.
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.
LGTM!
d5ac35b - awesome! |
Part of freedomofpress/securedrop-builder#482
Description
Adds a GitHub action to preserve 4 packages for nightlies & regular workstation packages in yum-test. Note that this reduces the number of nightlies to 4 (from 7), consistent with the
securedrop-apt-test
workflow for nightlies (https://github.com/freedomofpress/securedrop-apt-test/blob/main/.github/workflows/cleanup.yml).The
clean-old-packages
script was adapted from thesecuredrop-builder
repository and originally written by Kunal Mehta.Testing
PUSH_TOKEN
, we can, but since this is only a cleanup job that can fail for a few days without breaking anything, I figure it's also safe to land and troubleshoot if it fails to push as expected.