Skip to content

Commit f14a98c

Browse files
Allow manual trigger and Daily trigger (#68)
Manual trigger pipeline and Daily trigger
1 parent badab80 commit f14a98c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/docker-build-and-test.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,32 @@ on:
88
branches:
99
- main
1010

11+
12+
# Manually trigger the workflow
13+
workflow_dispatch:
14+
inputs:
15+
dockerType:
16+
description: 'Docker Type'
17+
required: true
18+
default: 'azurelinux'
19+
type: choice
20+
options:
21+
- azurelinux
22+
- ubuntu22_04
23+
- ubuntu24_04
24+
testCase:
25+
description: 'Test Case'
26+
required: true
27+
default: 'test1'
28+
type: choice
29+
options:
30+
- test1
31+
- test2
32+
33+
### daily cron job to run the workflow
34+
schedule:
35+
- cron: '0 0 * * *' # Runs daily at midnight UTC
36+
1137
env:
1238
ACR: jrtc
1339
IMAGE_TAG: ${{ github.run_id }}-${{ github.sha }}

0 commit comments

Comments
 (0)