Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frankdejonge/use-container-cleanup
https://github.com/frankdejonge/use-container-cleanup
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/frankdejonge/use-container-cleanup
- Owner: frankdejonge
- Created: 2021-10-23T12:55:47.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-05T08:31:27.000Z (8 months ago)
- Last Synced: 2024-09-11T15:24:01.094Z (24 days ago)
- Language: TypeScript
- Size: 177 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Action to clean up containers from ghcr.io
This action old deleted docker containers hosted on ghcr.io. The action expects
containers to have incremental numeric semver-like tags. Any version that can be coerced
to a semver version works (e.g. `1.2` or `2.3.4`).For tagging of containers I use tags formatted as `.${{ github.run_number }}`.
## Example workflow
```yaml
name: Clean up Container Imageson:
push:
branches: [main]
paths:
- .github/workflows/cleanup-containers.yml
workflow_run:
workflows: ["Build Docker Images"]
branches: [main]
types:
- completedjobs:
clean-up:
runs-on: ubuntu-latest
steps:
uses: frankdejonge/[email protected]
with:
package:
versions:
token: ${{ secrets.GITHUB_TOKEN }}
```