From e3e95e92cac5d20dfcbb48b6c998f7122a99db43 Mon Sep 17 00:00:00 2001 From: Guancheng Fu <110874468+gc-fu@users.noreply.github.com> Date: Tue, 4 Jul 2023 17:00:29 +0800 Subject: [PATCH] Add workflow for releasing TDX bigdl-llm image (#8455) --- .github/workflows/manually_build.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/.github/workflows/manually_build.yml b/.github/workflows/manually_build.yml index a81c52b6..0df3a76c 100644 --- a/.github/workflows/manually_build.yml +++ b/.github/workflows/manually_build.yml @@ -23,6 +23,7 @@ on: - bigdl-ppml-trusted-big-data-ml-scala-occlum-production-customer - bigdl-ppml-trusted-realtime-ml-scala-graphene - bigdl-ppml-trusted-realtime-ml-scala-occlum + - bigdl-ppml-trusted-bigdl-llm-tdx - bigdl-ppml-kmsutil - bigdl-ppml-pccs - bigdl-ppml-trusted-python-toolkit-base @@ -651,6 +652,31 @@ jobs: docker push 10.239.45.10/arda/${image}:${TAG} docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} + bigdl-ppml-trusted-bigdl-llm-tdx: + if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-bigdl-llm-tdx' || github.event.inputs.artifact == 'all' }} + runs-on: [self-hosted, Shire] + steps: + - uses: actions/checkout@v3 + - name: docker login + run: | + docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD} + - name: bigdl-ppml-trusted-bigdl-llm-tdx + run: | + echo "##############################################################" + echo "####### bigdl-ppml-trusted-bigdl-llm-tdx ###########" + echo "##############################################################" + export image=intelanalytics/bigdl-ppml-trusted-bigdl-llm-tdx + cd ppml/tdx/docker/trusted-bigdl-llm/ + sudo docker build \ + --no-cache=true \ + --build-arg http_proxy=${HTTP_PROXY} \ + --build-arg https_proxy=${HTTPS_PROXY} \ + --build-arg no_proxy=${NO_PROXY} \ + -t ${image}:${TAG} -f ./Dockerfile . + sudo docker push ${image}:${TAG} + sudo docker tag ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} + sudo docker push 10.239.45.10/arda/${image}:${TAG} + sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} bigdl-ppml-trusted-realtime-ml-scala-occlum: if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-realtime-ml-scala-occlum' || github.event.inputs.artifact == 'all' }}