-
Notifications
You must be signed in to change notification settings - Fork 4
Add cleanup pipeline to remove unusable images #51
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
Merged
Merged
Changes from 14 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
167b38f
Add cleanup pipeline to remove unusable images
bthomee 81edf17
Add list of image names to clean
bthomee 7808dda
Use strategy matrix
bthomee fb7eb23
Set repository name
bthomee 079b258
Set repository name
bthomee 91c5003
Enable full matrix
bthomee 29a7510
Enable full matrix
bthomee cd3975f
Remove on:push and dry-run:true
bthomee d862f0d
Pin action version, dry-run on push
bthomee 79648a3
Merge branch 'main' into bthomee/cleanup
bthomee 69ae846
Add pull_request event check
bthomee 6df882e
Merge branch 'main' into bthomee/cleanup
bthomee 4160f5b
Merge branch 'main' into bthomee/cleanup
mathbunnyru 85832ed
Merge branch 'main' into bthomee/cleanup
Bronek a1a9072
Add gcc to list
bthomee e255003
Remove debian-gcc from list
bthomee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: Docker image cleanup | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - .github/workflows/cleanup.yml | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - .github/workflows/cleanup.yml | ||
| schedule: | ||
| - cron: "42 2 * * 0" # Run every Sunday at 02:42 UTC. | ||
| workflow_dispatch: | ||
bthomee marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| jobs: | ||
| cleanup: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| packages: write | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| image: | ||
| - debian-bullseye | ||
| - debian-bookworm | ||
| - debian-gcc | ||
bthomee marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| - rhel-9.4 | ||
| - rhel-9.6 | ||
| - tools-rippled-clang-format | ||
| - tools-rippled-documentation | ||
| - tools-rippled-pre-commit | ||
| - tools-rippled-prettier | ||
| - ubuntu-jammy | ||
| - ubuntu-noble | ||
| steps: | ||
| - name: Cleanup images in the GitHub Container Registry | ||
| uses: dataaxiom/ghcr-cleanup-action@cd0cdb900b5dbf3a6f2cc869f0dbb0b8211f50c4 # v1.0.16 | ||
| with: | ||
| delete-ghost-images: true | ||
| delete-orphaned-images: true | ||
| delete-partial-images: true | ||
| delete-untagged: true | ||
| dry-run: ${{ github.event_name == 'pull_request' }} | ||
| package: ci/${{ matrix.image }} | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.