mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-02-24 12:24:46 +08:00
ci: optimize workflow runs
- Add Docker build cache for faster builds - Increase sync frequency from daily to every 6 hours - keep latest 3 workflow runs only Signed-off-by: JohnsonRan <me@ihtw.moe>
This commit is contained in:
12
.github/workflows/docker-image.yml
vendored
12
.github/workflows/docker-image.yml
vendored
@@ -40,4 +40,14 @@ jobs:
|
||||
platforms: linux/amd64,linux/arm64
|
||||
tags: |
|
||||
ghcr.io/${{ github.repository_owner }}/moontv:latest
|
||||
ghcr.io/${{ github.repository_owner }}/moontv:${{ github.sha }}
|
||||
ghcr.io/${{ github.repository_owner }}/moontv:${{ github.sha }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
- name: Delete workflow runs
|
||||
uses: Mattraks/delete-workflow-runs@main
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
repository: ${{ github.repository }}
|
||||
retain_days: 0
|
||||
keep_minimum_runs: 2
|
||||
Reference in New Issue
Block a user