Add build script for trusted-dl-base (#6193)
This commit is contained in:
		
							parent
							
								
									6624bd1c2c
								
							
						
					
					
						commit
						a0d6f860b8
					
				
					 1 changed files with 30 additions and 0 deletions
				
			
		
							
								
								
									
										30
									
								
								.github/workflows/manually_build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										30
									
								
								.github/workflows/manually_build.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -11,6 +11,7 @@ on:
 | 
			
		|||
        options:
 | 
			
		||||
        - all
 | 
			
		||||
        - bigdl-ppml-gramine-base
 | 
			
		||||
        - bigdl-ppml-trusted-deep-learning-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
 | 
			
		||||
| 
						 | 
				
			
			@ -62,6 +63,35 @@ jobs:
 | 
			
		|||
        sudo docker push 10.239.45.10/arda/${base_image}:${TAG}
 | 
			
		||||
        sudo docker rmi -f ${base_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]
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v3
 | 
			
		||||
    - name: docker login
 | 
			
		||||
      run: |
 | 
			
		||||
        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
			
		||||
    - name: bigdl-ppml-trusted-deep-learning-gramine-base
 | 
			
		||||
      run: |
 | 
			
		||||
        echo "##############################################################"
 | 
			
		||||
        echo "####### bigdl-ppml-trusted-deep-learning-gramine-base ########"
 | 
			
		||||
        echo "##############################################################"
 | 
			
		||||
        export base_image=intelanalytics/bigdl-ppml-gramine-base
 | 
			
		||||
        export image=intelanalytics/bigdl-ppml-trusted-deep-learning-gramine-base
 | 
			
		||||
        cd ppml/base/trusted-deep-learning/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}
 | 
			
		||||
 | 
			
		||||
  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' }}
 | 
			
		||||
    runs-on: [self-hosted, Shire]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue