Auto Clean ImageCI #140
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: Auto Clean ImageCI | |
on: | |
schedule: | |
# run 4:00 am once for a week, in shanghai timezone | |
# cron by UTC, shanghai timezone = UTC + 8 | |
- cron: "0 20 * * 0" | |
workflow_dispatch: | |
jobs: | |
prune-image-ci: | |
# forbid to specify version for local workflow, GITHUB_REF Same as the caller workflow | |
uses: ./.github/workflows/call-clean-ghcr.yaml | |
with: | |
image_name: controllerimage-ci | |
older_than: "2" | |
# reusable workflow can not see secrets, so have to pass from outside | |
secrets: inherit | |
prune-image-beta: | |
# forbid to specify version for local workflow, GITHUB_REF Same as the caller workflow | |
uses: ./.github/workflows/call-clean-ghcr.yaml | |
with: | |
image_name: controllerimage-beta | |
older_than: "2" | |
# reusable workflow can not see secrets, so have to pass from outside | |
secrets: inherit |