Skip to content

Commit 7f7ad0e

Browse files
authored
Inject commit for the release docker image (#1060)
Signed-off-by: ZePan110 <ze.pan@intel.com>
1 parent 0306c62 commit 7f7ad0e

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

.github/workflows/_example-workflow.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ on:
4040
default: "main"
4141
required: false
4242
type: string
43+
inject_commit:
44+
default: false
45+
required: false
46+
type: string
47+
4348
jobs:
4449
####################################################################################################
4550
# Image Build
@@ -83,6 +88,7 @@ jobs:
8388
docker_compose_path: ${{ github.workspace }}/${{ inputs.example }}/docker_image_build/build.yaml
8489
service_list: ${{ inputs.services }}
8590
registry: ${OPEA_IMAGE_REPO}opea
91+
inject_commit: ${{ inputs.inject_commit }}
8692
tag: ${{ inputs.tag }}
8793

8894
####################################################################################################

.github/workflows/manual-example-workflow.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ on:
5050
description: 'OPEA branch for image build'
5151
required: false
5252
type: string
53+
inject_commit:
54+
default: true
55+
description: "inject commit to docker images true or false"
56+
required: false
57+
type: string
5358

5459
permissions: read-all
5560
jobs:
@@ -101,4 +106,5 @@ jobs:
101106
test_k8s: ${{ fromJSON(inputs.test_k8s) }}
102107
test_gmc: ${{ fromJSON(inputs.test_gmc) }}
103108
opea_branch: ${{ inputs.opea_branch }}
109+
inject_commit: ${{ inputs.inject_commit }}
104110
secrets: inherit

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ on:
3030
description: 'OPEA branch for image build'
3131
required: false
3232
type: string
33+
inject_commit:
34+
default: true
35+
description: "inject commit to docker images true or false"
36+
required: false
37+
type: string
38+
3339
jobs:
3440
get-test-matrix:
3541
runs-on: ubuntu-latest
@@ -56,4 +62,5 @@ jobs:
5662
services: ${{ inputs.services }}
5763
tag: ${{ inputs.tag }}
5864
opea_branch: ${{ inputs.opea_branch }}
65+
inject_commit: ${{ inputs.inject_commit }}
5966
secrets: inherit

0 commit comments

Comments
 (0)