Skip to content

Commit 0990dae

Browse files
committed
Change mode to inject_commit.
Signed-off-by: ZePan110 <[email protected]>
1 parent ed6a28b commit 0990dae

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/_example-workflow.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ on:
4040
default: "main"
4141
required: false
4242
type: string
43-
mode:
44-
default: "CI"
43+
inject_commit:
44+
default: false
4545
required: false
4646
type: string
4747

@@ -82,13 +82,13 @@ jobs:
8282
8383
- name: Build Image
8484
if: ${{ fromJSON(inputs.build) }}
85-
uses: opea-project/validation/actions/image-build@main
85+
uses: opea-project/validation/actions/image-build@images-commit
8686
with:
8787
work_dir: ${{ github.workspace }}/${{ inputs.example }}/docker_image_build
8888
docker_compose_path: ${{ github.workspace }}/${{ inputs.example }}/docker_image_build/build.yaml
8989
service_list: ${{ inputs.services }}
9090
registry: ${OPEA_IMAGE_REPO}opea
91-
mode: ${{ inputs.mode }}
91+
inject_commit: ${{ inputs.inject_commit }}
9292
tag: ${{ inputs.tag }}
9393

9494
####################################################################################################

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ 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"
33+
inject_commit:
34+
default: false
35+
description: "inject commit to docker images true or false"
3636
required: false
3737
type: string
3838

@@ -62,5 +62,5 @@ jobs:
6262
services: ${{ inputs.services }}
6363
tag: ${{ inputs.tag }}
6464
opea_branch: ${{ inputs.opea_branch }}
65-
mode: ${{ inputs.mode }}
65+
inject_commit: ${{ inputs.inject_commit }}
6666
secrets: inherit

0 commit comments

Comments
 (0)