diff --git a/.github/workflows/_example-workflow.yml b/.github/workflows/_example-workflow.yml index 07e857d61..cfed39c95 100644 --- a/.github/workflows/_example-workflow.yml +++ b/.github/workflows/_example-workflow.yml @@ -40,6 +40,11 @@ on: default: "main" required: false type: string + inject_commit: + default: false + 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 + inject_commit: ${{ inputs.inject_commit }} tag: ${{ inputs.tag }} #################################################################################################### diff --git a/.github/workflows/manual-example-workflow.yml b/.github/workflows/manual-example-workflow.yml index 03ba728c7..9e31f26d7 100644 --- a/.github/workflows/manual-example-workflow.yml +++ b/.github/workflows/manual-example-workflow.yml @@ -50,6 +50,11 @@ on: description: 'OPEA branch for image build' required: false type: string + inject_commit: + default: true + description: "inject commit to docker images true or false" + required: false + type: string permissions: read-all jobs: @@ -101,4 +106,5 @@ jobs: test_k8s: ${{ fromJSON(inputs.test_k8s) }} test_gmc: ${{ fromJSON(inputs.test_gmc) }} opea_branch: ${{ inputs.opea_branch }} + inject_commit: ${{ inputs.inject_commit }} secrets: inherit diff --git a/.github/workflows/manual-image-build.yml b/.github/workflows/manual-image-build.yml index 8a0b0cf2c..53ba750ed 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 + inject_commit: + default: true + description: "inject commit to docker images true or false" + 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 }} + inject_commit: ${{ inputs.inject_commit }} secrets: inherit