parent
							
								
									b06de94a50
								
							
						
					
					
						commit
						c4b533f0e1
					
				
					 2 changed files with 54 additions and 15 deletions
				
			
		
							
								
								
									
										63
									
								
								.github/workflows/manually_build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										63
									
								
								.github/workflows/manually_build.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -22,16 +22,28 @@ on:
 | 
			
		|||
        required: true
 | 
			
		||||
        default: 'latest'
 | 
			
		||||
        type: string
 | 
			
		||||
  workflow_call:
 | 
			
		||||
    inputs:
 | 
			
		||||
      artifact:
 | 
			
		||||
        description: 'select which job to run("all" will make all jobs run)'
 | 
			
		||||
        required: true
 | 
			
		||||
        default: 'all'
 | 
			
		||||
        type: string
 | 
			
		||||
      tag:
 | 
			
		||||
        description: 'docker image tag (e.g. 2.1.0-SNAPSHOT)'
 | 
			
		||||
        required: true
 | 
			
		||||
        default: 'latest'
 | 
			
		||||
        type: string
 | 
			
		||||
 | 
			
		||||
env:
 | 
			
		||||
  TAG: ${{ github.event.inputs.tag }}
 | 
			
		||||
  TAG: ${{ inputs.tag }}
 | 
			
		||||
 | 
			
		||||
permissions:
 | 
			
		||||
  contents: read
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  ipex-llm-finetune-lora-cpu:
 | 
			
		||||
    if: ${{ github.event.inputs.artifact == 'ipex-llm-finetune-lora-cpu' || github.event.inputs.artifact == 'all' }}
 | 
			
		||||
    if: ${{ inputs.artifact == 'ipex-llm-finetune-lora-cpu' || inputs.artifact == 'all' }}
 | 
			
		||||
    runs-on: [self-hosted, Shire]
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
| 
						 | 
				
			
			@ -55,10 +67,13 @@ jobs:
 | 
			
		|||
        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}
 | 
			
		||||
        # tag 'latest'
 | 
			
		||||
        sudo docker tag ${image}:${TAG} ${image}:latest
 | 
			
		||||
        sudo docker push ${image}:latest
 | 
			
		||||
        sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} ${image}:latest
 | 
			
		||||
 | 
			
		||||
  ipex-llm-finetune-qlora-cpu:
 | 
			
		||||
    if: ${{ github.event.inputs.artifact == 'ipex-llm-finetune-qlora-cpu' || github.event.inputs.artifact == 'all' }}
 | 
			
		||||
    if: ${{ inputs.artifact == 'ipex-llm-finetune-qlora-cpu' || inputs.artifact == 'all' }}
 | 
			
		||||
    runs-on: [self-hosted, Shire]
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
| 
						 | 
				
			
			@ -82,10 +97,13 @@ jobs:
 | 
			
		|||
          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}
 | 
			
		||||
          # tag 'latest'
 | 
			
		||||
          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
			
		||||
          sudo docker push ${image}:latest
 | 
			
		||||
          sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} ${image}:latest
 | 
			
		||||
 | 
			
		||||
  ipex-llm-finetune-qlora-xpu:
 | 
			
		||||
    if: ${{ github.event.inputs.artifact == 'ipex-llm-finetune-qlora-xpu' || github.event.inputs.artifact == 'all' }}
 | 
			
		||||
    if: ${{ inputs.artifact == 'ipex-llm-finetune-qlora-xpu' || inputs.artifact == 'all' }}
 | 
			
		||||
    runs-on: [self-hosted, Shire]
 | 
			
		||||
    
 | 
			
		||||
    steps:
 | 
			
		||||
| 
						 | 
				
			
			@ -109,10 +127,13 @@ jobs:
 | 
			
		|||
        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}
 | 
			
		||||
        # tag 'latest'
 | 
			
		||||
        sudo docker tag ${image}:${TAG} ${image}:latest
 | 
			
		||||
        sudo docker push ${image}:latest
 | 
			
		||||
        sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} ${image}:latest
 | 
			
		||||
 | 
			
		||||
  ipex-llm-xpu:
 | 
			
		||||
    if: ${{ github.event.inputs.artifact == 'ipex-llm-xpu' || github.event.inputs.artifact == 'all' }}
 | 
			
		||||
    if: ${{ inputs.artifact == 'ipex-llm-xpu' || inputs.artifact == 'all' }}
 | 
			
		||||
    runs-on: [self-hosted, Shire]
 | 
			
		||||
    
 | 
			
		||||
    steps:
 | 
			
		||||
| 
						 | 
				
			
			@ -136,10 +157,13 @@ jobs:
 | 
			
		|||
        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}
 | 
			
		||||
        # tag 'latest'
 | 
			
		||||
        sudo docker tag ${image}:${TAG} ${image}:latest
 | 
			
		||||
        sudo docker push ${image}:latest
 | 
			
		||||
        sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} ${image}:latest
 | 
			
		||||
 | 
			
		||||
  ipex-llm-cpu:
 | 
			
		||||
    if: ${{ github.event.inputs.artifact == 'ipex-llm-cpu' || github.event.inputs.artifact == 'all' }}
 | 
			
		||||
    if: ${{ inputs.artifact == 'ipex-llm-cpu' || inputs.artifact == 'all' }}
 | 
			
		||||
    runs-on: [self-hosted, Shire]
 | 
			
		||||
 | 
			
		||||
    steps:
 | 
			
		||||
| 
						 | 
				
			
			@ -163,10 +187,13 @@ jobs:
 | 
			
		|||
        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}
 | 
			
		||||
        # tag 'latest'
 | 
			
		||||
        sudo docker tag ${image}:${TAG} ${image}:latest
 | 
			
		||||
        sudo docker push ${image}:latest
 | 
			
		||||
        sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} ${image}:latest
 | 
			
		||||
 | 
			
		||||
  ipex-llm-serving-xpu:
 | 
			
		||||
    if: ${{ github.event.inputs.artifact == 'ipex-llm-serving-xpu' || github.event.inputs.artifact == 'all' }}
 | 
			
		||||
    if: ${{ inputs.artifact == 'ipex-llm-serving-xpu' || inputs.artifact == 'all' }}
 | 
			
		||||
    runs-on: [self-hosted, Shire]
 | 
			
		||||
    
 | 
			
		||||
    steps:
 | 
			
		||||
| 
						 | 
				
			
			@ -190,10 +217,13 @@ jobs:
 | 
			
		|||
        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}
 | 
			
		||||
        # tag 'latest'
 | 
			
		||||
        sudo docker tag ${image}:${TAG} ${image}:latest
 | 
			
		||||
        sudo docker push ${image}:latest
 | 
			
		||||
        sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} ${image}:latest
 | 
			
		||||
 | 
			
		||||
  ipex-llm-serving-cpu:
 | 
			
		||||
    if: ${{ github.event.inputs.artifact == 'ipex-llm-serving-cpu' || github.event.inputs.artifact == 'all' }}
 | 
			
		||||
    if: ${{ inputs.artifact == 'ipex-llm-serving-cpu' || inputs.artifact == 'all' }}
 | 
			
		||||
    runs-on: [self-hosted, Shire]
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
			
		||||
| 
						 | 
				
			
			@ -216,5 +246,8 @@ jobs:
 | 
			
		|||
        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}
 | 
			
		||||
        # tag 'latest'
 | 
			
		||||
        sudo docker tag ${image}:${TAG} ${image}:latest
 | 
			
		||||
        sudo docker push ${image}:latest
 | 
			
		||||
        sudo docker rmi -f ${image}:${TAG} 10.239.45.10/arda/${image}:${TAG} ${image}:latest
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										6
									
								
								.github/workflows/nightly_build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/workflows/nightly_build.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -69,6 +69,12 @@ jobs:
 | 
			
		|||
        job-name: python-build
 | 
			
		||||
        runner-hosted-on: 'Shanghai'
 | 
			
		||||
 | 
			
		||||
  docker-build:
 | 
			
		||||
    if: ${{ github.event.schedule }} 
 | 
			
		||||
    uses: ./.github/workflows/manually_build.yml
 | 
			
		||||
    with:
 | 
			
		||||
      artifact: all
 | 
			
		||||
      tag: 2.1.0-SNAPSHOT
 | 
			
		||||
 | 
			
		||||
  create-workflow-badge:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue