Skip to content

Commit cdd60b1

Browse files
KingPinKingPin
authored andcommitted
ci: add scheduled build and publish on Tuesdays at 3AM UTC
- Add schedule trigger: weekly on Tuesday at 3:00 AM UTC - Update publish job condition to run on schedule events (in addition to push) - Schedule only triggers on main branch (publish job already gated to main) - build-and-test runs for all triggers; publish only on main push/schedule
1 parent 76b6aac commit cdd60b1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/docker-ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
pull_request:
88
branches:
99
- '**'
10+
schedule:
11+
- cron: '0 3 * * 2' # Weekly on Tuesday at 3:00 AM UTC
1012
workflow_dispatch:
1113

1214
concurrency:
@@ -216,7 +218,7 @@ jobs:
216218
217219
publish:
218220
needs: build-and-test
219-
if: github.ref == 'refs/heads/main'
221+
if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'schedule')
220222
runs-on: ubuntu-latest
221223
strategy:
222224
fail-fast: false

0 commit comments

Comments
 (0)