Skip to content

Commit

Permalink
ci: reschedule Docker publish to 5am UTC on Mondays and use upstream …
Browse files Browse the repository at this point in the history
…as build cache

- Change cron schedule for workflow to run every Monday at 5am UTC instead of 4am UTC
- Fix submodules option from single quotes to double quotes in checkout step
- Update cache-from registry reference to use user `jim60105` instead of `${{ github.repository_owner }}`

Signed-off-by: 陳鈞 <jim60105@gmail.com>
  • Loading branch information
jim60105 committed Nov 25, 2024
1 parent fe51631 commit 22dd183
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/docker_publish_latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- "master"
schedule:
- cron: "0 4 * * 1" # every monday at 4am UTC
- cron: "0 5 * * 1" # every monday at 5am UTC

workflow_dispatch:

Expand All @@ -22,13 +22,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
submodules: "true"

- name: Setup docker
id: setup
uses: ./.github/workflows/docker-reused-setup-steps
with:
DOCKERHUB_ORGANIZATION_NAME : ${{ secrets.DOCKERHUB_ORGANIZATION_NAME }}
DOCKERHUB_ORGANIZATION_NAME: ${{ secrets.DOCKERHUB_ORGANIZATION_NAME }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
tag: latest
Expand All @@ -47,7 +47,6 @@ jobs:
RELEASE=${{ github.run_number }}
platforms: linux/amd64,linux/arm64
# Cache to regietry instead of gha to avoid the capacity limit.
cache-from: type=registry,ref=ghcr.io/${{ github.repository_owner }}/streamlink:cache
cache-to: type=registry,ref=ghcr.io/${{ github.repository_owner }}/streamlink:cache,mode=max
cache-from: type=registry,ref=ghcr.io/jim60105/streamlink:cache
sbom: true
provenance: true

0 comments on commit 22dd183

Please sign in to comment.