[CICD] Add workflow to build trusted-deep-learning-gramine-ref image (#6208)
* Add workflow to build trusted-deep-learning-gramine-ref image * Add options
This commit is contained in:
		
							parent
							
								
									7b28b3fd20
								
							
						
					
					
						commit
						4043e361fc
					
				
					 1 changed files with 32 additions and 0 deletions
				
			
		
							
								
								
									
										32
									
								
								.github/workflows/manually_build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										32
									
								
								.github/workflows/manually_build.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -12,6 +12,7 @@ on:
 | 
				
			||||||
        - all
 | 
					        - all
 | 
				
			||||||
        - bigdl-ppml-gramine-base
 | 
					        - bigdl-ppml-gramine-base
 | 
				
			||||||
        - bigdl-ppml-trusted-deep-learning-gramine-base
 | 
					        - bigdl-ppml-trusted-deep-learning-gramine-base
 | 
				
			||||||
 | 
					        - bigdl-ppml-trusted-deep-learning-gramine-ref
 | 
				
			||||||
        - 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
 | 
				
			||||||
| 
						 | 
					@ -92,6 +93,37 @@ jobs:
 | 
				
			||||||
        sudo docker push 10.239.45.10/arda/${image}:${TAG}
 | 
					        sudo docker push 10.239.45.10/arda/${image}:${TAG}
 | 
				
			||||||
        sudo docker rmi -f ${image}:${TAG}
 | 
					        sudo docker rmi -f ${image}:${TAG}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  bigdl-ppml-trusted-deep-learning-gramine-ref:
 | 
				
			||||||
 | 
					    if: ${{ github.event.inputs.artifact == 'bigdl-ppml-trusted-deep-learning-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-deep-learning-gramine-ref
 | 
				
			||||||
 | 
					      run: |
 | 
				
			||||||
 | 
					        echo "##############################################################"
 | 
				
			||||||
 | 
					        echo "####### bigdl-ppml-trusted-deep-learning-gramine-ref #########"
 | 
				
			||||||
 | 
					        echo "##############################################################"
 | 
				
			||||||
 | 
					        export base_image=intelanalytics/bigdl-ppml-trusted-deep-learning-gramine-base
 | 
				
			||||||
 | 
					        export image=intelanalytics/bigdl-ppml-trusted-deep-learning-gramine-ref
 | 
				
			||||||
 | 
					        cd ppml/base/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 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}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  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' }}
 | 
				
			||||||
    runs-on: [self-hosted, Shire]
 | 
					    runs-on: [self-hosted, Shire]
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue