Skip to content

Commit

Permalink
Change mode to inject_commit.
Browse files Browse the repository at this point in the history
Signed-off-by: ZePan110 <ze.pan@intel.com>
  • Loading branch information
ZePan110 committed Nov 4, 2024
1 parent ed6a28b commit 0990dae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/_example-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ on:
default: "main"
required: false
type: string
mode:
default: "CI"
inject_commit:
default: false
required: false
type: string

Expand Down Expand Up @@ -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 }}

####################################################################################################
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/manual-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

0 comments on commit 0990dae

Please sign in to comment.