Skip to content

Commit 2683546

Browse files
committed
Add mode flag.
Signed-off-by: ZePan110 <ze.pan@intel.com>
1 parent 77d5b7f commit 2683546

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/_example-workflow.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ on:
4040
default: "main"
4141
required: false
4242
type: string
43+
mode:
44+
default: "CI"
45+
required: false
46+
type: string
47+
4348
jobs:
4449
####################################################################################################
4550
# Image Build
@@ -83,6 +88,7 @@ jobs:
8388
docker_compose_path: ${{ github.workspace }}/${{ inputs.example }}/docker_image_build/build.yaml
8489
service_list: ${{ inputs.services }}
8590
registry: ${OPEA_IMAGE_REPO}opea
91+
mode: ${{ inputs.mode }}
8692
tag: ${{ inputs.tag }}
8793

8894
####################################################################################################

.github/workflows/manual-image-build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ on:
3030
description: 'OPEA branch for image build'
3131
required: false
3232
type: string
33+
mode:
34+
default: "CI"
35+
description: "Whether the test range is CI or CD"
36+
required: false
37+
type: string
38+
3339
jobs:
3440
get-test-matrix:
3541
runs-on: ubuntu-latest
@@ -56,4 +62,5 @@ jobs:
5662
services: ${{ inputs.services }}
5763
tag: ${{ inputs.tag }}
5864
opea_branch: ${{ inputs.opea_branch }}
65+
mode: ${{ inputs.mode }}
5966
secrets: inherit

0 commit comments

Comments
 (0)