[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:
parent
f2e4c40cee
commit
6624bd1c2c
1 changed files with 29 additions and 0 deletions
29
.github/workflows/manually_build.yml
vendored
29
.github/workflows/manually_build.yml
vendored
|
|
@ -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' }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue