enable image build on Gaudi when push event (#355)

Signed-off-by: Yingchun Guo <yingchun.guo@intel.com>
This commit is contained in:
Ying Chun Guo
2024-07-01 15:47:13 +08:00
committed by GitHub
parent 77ba9139a1
commit bbbaefacad
2 changed files with 8 additions and 5 deletions

View File

@@ -23,8 +23,11 @@ jobs:
mega-image-build:
needs: job1
strategy:
matrix: ${{ fromJSON(needs.job1.outputs.run_matrix) }}
matrix:
workload: ${{ fromJSON(needs.job1.outputs.run_matrix).include.*.example }}
hardware: ["gaudi","xeon"]
uses: ./.github/workflows/reuse-image-build.yml
with:
image-tag: latest
mega-service: "${{ matrix.example }}"
image_tag: latest
mega_service: "${{ matrix.workload }}"
runner_label: docker-build-${{ matrix.hardware }}

View File

@@ -46,7 +46,7 @@ function docker_build() {
# $1 is like "apple orange pear"
for MEGA_SVC in $1; do
case $MEGA_SVC in
"ChatQnA"|"CodeGen"|"CodeTrans"|"DocSum"|"Translation")
"ChatQnA"|"CodeGen"|"CodeTrans"|"DocSum"|"Translation"|"AudioQnA"|"SearchQnA")
cd $MEGA_SVC/docker
IMAGE_NAME="$(getImagenameFromMega $MEGA_SVC)"
docker_build ${IMAGE_NAME}
@@ -56,7 +56,7 @@ for MEGA_SVC in $1; do
docker_build ${IMAGE_NAME}-conversation-ui docker/Dockerfile.react
fi
;;
"AudioQnA"|"SearchQnA"|"VisualQnA")
"VisualQnA")
echo "Not supported yet"
;;
*)