Skip to content

Commit 013fbfd

Browse files
committed
update deploy_gmc logical
Signed-off-by: chensuyue <suyue.chen@intel.com>
1 parent 503a1a9 commit 013fbfd

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

.github/workflows/_gmc-workflow.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ on:
1616
required: true
1717
type: string
1818
description: "Hardware to run test"
19-
deploy:
20-
default: true
21-
required: true
22-
type: boolean
23-
description: 'Whether to deploy gmc'
2419
workflow_call:
2520
inputs:
2621
tag:
@@ -33,11 +28,6 @@ on:
3328
required: true
3429
type: string
3530
description: "Hardware to run test"
36-
deploy:
37-
default: true
38-
required: true
39-
type: boolean
40-
description: 'Whether to deploy gmc'
4131

4232
jobs:
4333
####################################################################################################
@@ -113,7 +103,6 @@ jobs:
113103
####################################################################################################
114104
gmc-install:
115105
needs: image-build
116-
if: ${{ fromJSON(inputs.deploy) }}
117106
runs-on: "k8s-${{ inputs.node }}"
118107
steps:
119108
- name: Checkout GenAIInfra repository

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ on:
4545
description: 'Test examples with k8s'
4646
required: false
4747
type: boolean
48+
test_gmc:
49+
default: false
50+
description: 'Test examples with gmc'
51+
required: false
52+
type: boolean
4853
opea_branch:
4954
default: "main"
5055
description: 'OPEA branch for image build'
@@ -70,6 +75,7 @@ jobs:
7075
echo "nodes=$nodes_json" >> $GITHUB_OUTPUT
7176
7277
build-deploy-gmc:
78+
if: ${{ fromJSON(inputs.deploy_gmc) }}
7379
strategy:
7480
matrix:
7581
node: ${{ fromJson(needs.get-test-matrix.outputs.nodes) }}
@@ -82,7 +88,7 @@ jobs:
8288
secrets: inherit
8389

8490
run-examples:
85-
needs: [get-test-matrix]
91+
needs: [get-test-matrix, build-deploy-gmc]
8692
strategy:
8793
matrix:
8894
example: ${{ fromJson(needs.get-test-matrix.outputs.examples) }}
@@ -97,5 +103,6 @@ jobs:
97103
scan: ${{ fromJSON(inputs.scan) }}
98104
test_compose: ${{ fromJSON(inputs.test_compose) }}
99105
test_k8s: ${{ fromJSON(inputs.test_k8s) }}
106+
test_gmc: ${{ fromJSON(inputs.test_gmc) }}
100107
opea_branch: ${{ inputs.opea_branch }}
101108
secrets: inherit

0 commit comments

Comments
 (0)