From 268354604b4c4b32c0bfca62178f15d5f0c025ae Mon Sep 17 00:00:00 2001 From: ZePan110 Date: Mon, 4 Nov 2024 18:59:11 +0800 Subject: [PATCH] Add mode flag. Signed-off-by: ZePan110 --- .github/workflows/_example-workflow.yml | 6 ++++++ .github/workflows/manual-image-build.yml | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/_example-workflow.yml b/.github/workflows/_example-workflow.yml index 4c1de94a3..c5fba085f 100644 --- a/.github/workflows/_example-workflow.yml +++ b/.github/workflows/_example-workflow.yml @@ -40,6 +40,11 @@ on: default: "main" required: false type: string + mode: + default: "CI" + required: false + type: string + jobs: #################################################################################################### # Image Build @@ -83,6 +88,7 @@ jobs: docker_compose_path: ${{ github.workspace }}/${{ inputs.example }}/docker_image_build/build.yaml service_list: ${{ inputs.services }} registry: ${OPEA_IMAGE_REPO}opea + mode: ${{ inputs.mode }} tag: ${{ inputs.tag }} #################################################################################################### diff --git a/.github/workflows/manual-image-build.yml b/.github/workflows/manual-image-build.yml index 8a0b0cf2c..bf5ce9af4 100644 --- a/.github/workflows/manual-image-build.yml +++ b/.github/workflows/manual-image-build.yml @@ -30,6 +30,12 @@ on: description: 'OPEA branch for image build' required: false type: string + mode: + default: "CI" + description: "Whether the test range is CI or CD" + required: false + type: string + jobs: get-test-matrix: runs-on: ubuntu-latest @@ -56,4 +62,5 @@ jobs: services: ${{ inputs.services }} tag: ${{ inputs.tag }} opea_branch: ${{ inputs.opea_branch }} + mode: ${{ inputs.mode }} secrets: inherit