From bbbaefacadb2ab3e3ef8975384ab8ee9994f7721 Mon Sep 17 00:00:00 2001 From: Ying Chun Guo Date: Mon, 1 Jul 2024 15:47:13 +0800 Subject: [PATCH] enable image build on Gaudi when push event (#355) Signed-off-by: Yingchun Guo --- .github/workflows/image-build-on-push.yml | 9 ++++++--- .github/workflows/scripts/build_push.sh | 4 ++-- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/image-build-on-push.yml b/.github/workflows/image-build-on-push.yml index ce5323c86..f18633336 100644 --- a/.github/workflows/image-build-on-push.yml +++ b/.github/workflows/image-build-on-push.yml @@ -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 }} diff --git a/.github/workflows/scripts/build_push.sh b/.github/workflows/scripts/build_push.sh index ac9b07369..466463a27 100755 --- a/.github/workflows/scripts/build_push.sh +++ b/.github/workflows/scripts/build_push.sh @@ -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" ;; *)