Cleanup #39
This file contains 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
--- | |
name: Cleanup | |
on: | |
workflow_dispatch: | |
schedule: | |
# https://docs.github.com/en/actions/reference/events-that-trigger-workflows#scheduled-events | |
# > Note: The schedule event can be delayed during periods of high loads of GitHub Actions workflow runs. | |
# > High load times include the start of every hour. To decrease the chance of delay, schedule your workflow to run at a different time of the hour. | |
- cron: "48 5 * * *" | |
jobs: | |
docker: | |
name: Docker | |
timeout-minutes: 10 | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Delete old images | |
uses: actions/delete-package-versions@v5 | |
with: | |
package-name: golang-tip | |
package-type: container | |
min-versions-to-keep: 365 | |
delete-only-untagged-versions: true |