diff --git a/.github/workflows/manually_build.yml b/.github/workflows/manually_build.yml index d1c628f2..c3e1dfbd 100644 --- a/.github/workflows/manually_build.yml +++ b/.github/workflows/manually_build.yml @@ -13,6 +13,8 @@ on: - bigdl-ppml-gramine-base - bigdl-ppml-trusted-deep-learning-gramine-base - bigdl-ppml-trusted-deep-learning-gramine-ref + - bigdl-ppml-trusted-dl-serving-gramine-base + - bigdl-ppml-trusted-dl-serving-gramine-ref - bigdl-ppml-trusted-big-data-ml-python-gramine - bigdl-ppml-trusted-big-data-ml-python-gramine-noattest - bigdl-ppml-trusted-big-data-ml-python-graphene @@ -130,7 +132,65 @@ jobs: 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-dl-serving-gramine-base: + if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-dl-serving-gramine-base' || 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-dl-serving-gramine-base + run: | + echo "##############################################################" + echo "####### bigdl-ppml-trusted-dl-serving-gramine-base ###########" + echo "##############################################################" + export base_image=intelanalytics/bigdl-ppml-gramine-base + export image=intelanalytics/bigdl-ppml-trusted-dl-serving-gramine-base + cd ppml/trusted-dl-serving/base + 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} 10.239.45.10/arda/${image}:${TAG} + bigdl-ppml-trusted-dl-serving-gramine-ref: + if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-dl-serving-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-dl-serving-gramine-ref + run: | + echo "##############################################################" + echo "####### bigdl-ppml-trusted-dl-serving-gramine-ref ############" + echo "##############################################################" + export base_image=intelanalytics/bigdl-ppml-trusted-dl-serving-gramine-base + export image=intelanalytics/bigdl-ppml-trusted-dl-serving-gramine-ref + cd ppml/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 SGX_MEM_SIZE=16G \ + --build-arg SGX_LOG_LEVEL=error \ + --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} 10.239.45.10/arda/${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]