diff --git a/.github/workflows/manually_build.yml b/.github/workflows/manually_build.yml index 2edff7c0..3e1d06e4 100644 --- a/.github/workflows/manually_build.yml +++ b/.github/workflows/manually_build.yml @@ -10,6 +10,7 @@ on: type: choice options: - all + - bigdl-ppml-gramine-base - bigdl-ppml-trusted-big-data-ml-python-gramine - bigdl-ppml-trusted-big-data-ml-python-graphene - bigdl-ppml-trusted-big-data-ml-scala-occlum @@ -32,6 +33,34 @@ permissions: packages: write jobs: + bigdl-ppml-gramine-base: + if: ${{ github.event.inputs.artifact == 'bigdl-ppml-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-gramine-base + run: | + echo "########################################" + echo "####### bigdl-ppml-gramine-base ########" + echo "########################################" + export base_image=intelanalytics/bigdl-ppml-gramine-base + cd ppml/base + sudo docker build \ + --no-cache=true \ + --build-arg http_proxy=${HTTP_PROXY} \ + --build-arg https_proxy=${HTTPS_PROXY} \ + --build-arg JDK_VERSION=8u192 \ + --build-arg JDK_URL=${JDK_URL} \ + --build-arg no_proxy=${NO_PROXY} \ + -t ${base_image}:${TAG} -f ./Dockerfile . + sudo docker push ${base_image}:${TAG} + sudo docker tag ${base_image}:${TAG} 10.239.45.10/arda/${base_image}:${TAG} + sudo docker push 10.239.45.10/arda/${base_image}:${TAG} + sudo docker rmi -f ${base_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' }}