ci: Run mirror-images less often

Run it once a night for regular cleanup etc and after each release-image
workflow instead of doing it blindly every 2 hours.

This will only run the mirror job if BOTH build types were
successful, but it is better than nothing, and we have the nightly run
to pick up everything else.

Thanks @jade for the quick feedback and hand-holding in creating this.
This commit is contained in:
Sebastian Spaeth
2026-04-14 22:26:23 +02:00
parent d482e0ae3a
commit a7fc905490
2 changed files with 12 additions and 2 deletions
+5 -2
View File
@@ -2,8 +2,11 @@ name: Mirror Container Images
on:
schedule:
# Run every 2 hours
- cron: "0 */2 * * *"
# Run nightly
- cron: "25 2 * * *"
workflow_call:
workflow_dispatch:
inputs:
dry_run:
+7
View File
@@ -195,3 +195,10 @@ jobs:
images: ${{ env.IMAGE_PATH }}
registry_user: ${{ vars.BUILTIN_REGISTRY_USER || github.actor }}
registry_password: ${{ secrets.BUILTIN_REGISTRY_PASSWORD || secrets.GITHUB_TOKEN }}
mirror_images:
needs:
- merge-maxperf
- merge-release
runs-on: ubuntu-latest
uses: ./.forgejo/workflows/mirror-images.yml