Skip to content

Auto Clean ImageCI #120

Auto Clean ImageCI

Auto Clean ImageCI #120

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