From 4043e361fc354a1e8b17a3f0d5f4e7c12b2590cc Mon Sep 17 00:00:00 2001 From: Guancheng Fu <110874468+gc-fu@users.noreply.github.com> Date: Thu, 20 Oct 2022 09:24:25 +0800 Subject: [PATCH] [CICD] Add workflow to build trusted-deep-learning-gramine-ref image (#6208) * Add workflow to build trusted-deep-learning-gramine-ref image * Add options --- .github/workflows/manually_build.yml | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.github/workflows/manually_build.yml b/.github/workflows/manually_build.yml index 5599142d..5525acd8 100644 --- a/.github/workflows/manually_build.yml +++ b/.github/workflows/manually_build.yml @@ -12,6 +12,7 @@ on: - all - bigdl-ppml-gramine-base - bigdl-ppml-trusted-deep-learning-gramine-base + - bigdl-ppml-trusted-deep-learning-gramine-ref - bigdl-ppml-trusted-big-data-ml-python-gramine - bigdl-ppml-trusted-big-data-ml-python-graphene - bigdl-ppml-trusted-big-data-ml-scala-occlum @@ -92,6 +93,37 @@ jobs: sudo docker push 10.239.45.10/arda/${image}:${TAG} sudo docker rmi -f ${image}:${TAG} + + bigdl-ppml-trusted-deep-learning-gramine-ref: + if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-deep-learning-gramine-ref' || 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-deep-learning-gramine-ref + run: | + echo "##############################################################" + echo "####### bigdl-ppml-trusted-deep-learning-gramine-ref #########" + echo "##############################################################" + export base_image=intelanalytics/bigdl-ppml-trusted-deep-learning-gramine-base + export image=intelanalytics/bigdl-ppml-trusted-deep-learning-gramine-ref + cd ppml/base/trusted-deep-learning/ref + openssl genrsa -3 -out enclave-key.pem 3072 + sudo docker build \ + --no-cache=true \ + --build-arg http_proxy=${HTTP_PROXY} \ + --build-arg https_proxy=${HTTPS_PROXY} \ + --build-arg no_proxy=${NO_PROXY} \ + --build-arg BASE_IMAGE_NAME=${base_image} \ + --build-arg BASE_IMAGE_TAG=${TAG} + -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} + bigdl-ppml-trusted-big-data-ml-python-gramine: if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-big-data-ml-python-gramine' || github.event.inputs.artifact == 'all' }} runs-on: [self-hosted, Shire]