adding new workflow for dl-serving image (#7595)

This commit is contained in:
Guancheng Fu 2023-02-17 10:29:20 +08:00 committed by GitHub
parent 8a8fe7ff9f
commit 842e676ad7

View file

@ -17,6 +17,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
@ -75,6 +77,66 @@ jobs:
sudo docker push 10.239.45.10/arda/${base_image}:${TAG}
sudo docker rmi -f ${base_image}:${TAG} 10.239.45.10/arda/${base_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
with:
ref: ${{ github.event.inputs.sha }}
- 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
with:
ref: ${{ github.event.inputs.sha }}
- 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
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-deep-learning-gramine-base:
if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-deep-learning-gramine-base' || github.event.inputs.artifact == 'all' }}
runs-on: [self-hosted, Shire]