[PPML WORKFLOW] Add build script for bigdl-ppml-gramine-base image (#6191)

* Add build script for bigdl-ppml-gramine-base image

* Remove image at last
This commit is contained in:
Guancheng Fu 2022-10-19 13:48:11 +08:00 committed by GitHub
parent f2e4c40cee
commit 6624bd1c2c

View file

@ -10,6 +10,7 @@ on:
type: choice type: choice
options: options:
- all - all
- bigdl-ppml-gramine-base
- bigdl-ppml-trusted-big-data-ml-python-gramine - bigdl-ppml-trusted-big-data-ml-python-gramine
- bigdl-ppml-trusted-big-data-ml-python-graphene - bigdl-ppml-trusted-big-data-ml-python-graphene
- bigdl-ppml-trusted-big-data-ml-scala-occlum - bigdl-ppml-trusted-big-data-ml-scala-occlum
@ -32,6 +33,34 @@ permissions:
packages: write packages: write
jobs: 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: 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' }} if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-big-data-ml-python-gramine' || github.event.inputs.artifact == 'all' }}