From 0990dae30d5555db0d0de643d183283679d1ed93 Mon Sep 17 00:00:00 2001 From: ZePan110 Date: Mon, 4 Nov 2024 23:15:56 +0800 Subject: [PATCH] Change mode to inject_commit. Signed-off-by: ZePan110 --- .github/workflows/_example-workflow.yml | 8 ++++---- .github/workflows/manual-image-build.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/_example-workflow.yml b/.github/workflows/_example-workflow.yml index bd9aeffed..13163e63b 100644 --- a/.github/workflows/_example-workflow.yml +++ b/.github/workflows/_example-workflow.yml @@ -40,8 +40,8 @@ on: default: "main" required: false type: string - mode: - default: "CI" + inject_commit: + default: false required: false type: string @@ -82,13 +82,13 @@ jobs: - name: Build Image if: ${{ fromJSON(inputs.build) }} - uses: opea-project/validation/actions/image-build@main + uses: opea-project/validation/actions/image-build@images-commit with: work_dir: ${{ github.workspace }}/${{ inputs.example }}/docker_image_build docker_compose_path: ${{ github.workspace }}/${{ inputs.example }}/docker_image_build/build.yaml service_list: ${{ inputs.services }} registry: ${OPEA_IMAGE_REPO}opea - mode: ${{ inputs.mode }} + inject_commit: ${{ inputs.inject_commit }} tag: ${{ inputs.tag }} #################################################################################################### diff --git a/.github/workflows/manual-image-build.yml b/.github/workflows/manual-image-build.yml index bf5ce9af4..a53261ef7 100644 --- a/.github/workflows/manual-image-build.yml +++ b/.github/workflows/manual-image-build.yml @@ -30,9 +30,9 @@ on: description: 'OPEA branch for image build' required: false type: string - mode: - default: "CI" - description: "Whether the test range is CI or CD" + inject_commit: + default: false + description: "inject commit to docker images true or false" required: false type: string @@ -62,5 +62,5 @@ jobs: services: ${{ inputs.services }} tag: ${{ inputs.tag }} opea_branch: ${{ inputs.opea_branch }} - mode: ${{ inputs.mode }} + inject_commit: ${{ inputs.inject_commit }} secrets: inherit