Wang jun/ipex llm workflow (#11499)
* [update] merge manually build for testing function to manualy build * [FIX] change public type to string * [FIX] change public type to string * [FIX] remove github.event prefix for inputs
This commit is contained in:
		
							parent
							
								
									e53bd4401c
								
							
						
					
					
						commit
						18c973dc3e
					
				
					 1 changed files with 18 additions and 18 deletions
				
			
		
							
								
								
									
										36
									
								
								.github/workflows/manually_build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										36
									
								
								.github/workflows/manually_build.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
					@ -65,7 +65,7 @@ jobs:
 | 
				
			||||||
    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
					    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        repository: 'intel-analytics/ipex-llm'
 | 
					        repository: 'intel-analytics/ipex-llm'
 | 
				
			||||||
        ref: ${{ github.event.inputs.checkout-ref }}
 | 
					        ref: ${{ inputs.checkout-ref }}
 | 
				
			||||||
    - name: docker login
 | 
					    - name: docker login
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
					        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
				
			||||||
| 
						 | 
					@ -83,7 +83,7 @@ jobs:
 | 
				
			||||||
          --build-arg no_proxy=${NO_PROXY} \
 | 
					          --build-arg no_proxy=${NO_PROXY} \
 | 
				
			||||||
          -t ${image}:${TAG} -f ./Dockerfile .
 | 
					          -t ${image}:${TAG} -f ./Dockerfile .
 | 
				
			||||||
        # push docker image to public hub
 | 
					        # push docker image to public hub
 | 
				
			||||||
        if [[ "${{ github.event.inputs.public }}" == "true" ]]; then
 | 
					        if [[ "${{ inputs.public }}" == "true" ]]; then
 | 
				
			||||||
          sudo docker push ${image}:${TAG}
 | 
					          sudo docker push ${image}:${TAG}
 | 
				
			||||||
          # tag 'latest'
 | 
					          # tag 'latest'
 | 
				
			||||||
          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
					          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
				
			||||||
| 
						 | 
					@ -103,7 +103,7 @@ jobs:
 | 
				
			||||||
      - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
					      - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          repository: 'intel-analytics/ipex-llm'
 | 
					          repository: 'intel-analytics/ipex-llm'
 | 
				
			||||||
          ref: ${{ github.event.inputs.checkout-ref }}
 | 
					          ref: ${{ inputs.checkout-ref }}
 | 
				
			||||||
      - name: docker login
 | 
					      - name: docker login
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
					          docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
				
			||||||
| 
						 | 
					@ -121,7 +121,7 @@ jobs:
 | 
				
			||||||
            --build-arg no_proxy=${NO_PROXY} \
 | 
					            --build-arg no_proxy=${NO_PROXY} \
 | 
				
			||||||
            -t ${image}:${TAG} -f ./Dockerfile .
 | 
					            -t ${image}:${TAG} -f ./Dockerfile .
 | 
				
			||||||
          # push docker image to public hub
 | 
					          # push docker image to public hub
 | 
				
			||||||
          if [[ "${{ github.event.inputs.public }}" == "true" ]]; then
 | 
					          if [[ "${{ inputs.public }}" == "true" ]]; then
 | 
				
			||||||
            sudo docker push ${image}:${TAG}
 | 
					            sudo docker push ${image}:${TAG}
 | 
				
			||||||
            # tag 'latest'
 | 
					            # tag 'latest'
 | 
				
			||||||
            sudo docker tag ${image}:${TAG} ${image}:latest
 | 
					            sudo docker tag ${image}:${TAG} ${image}:latest
 | 
				
			||||||
| 
						 | 
					@ -141,7 +141,7 @@ jobs:
 | 
				
			||||||
      - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
					      - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
				
			||||||
        with:
 | 
					        with:
 | 
				
			||||||
          repository: 'intel-analytics/ipex-llm'
 | 
					          repository: 'intel-analytics/ipex-llm'
 | 
				
			||||||
          ref: ${{ github.event.inputs.checkout-ref }}
 | 
					          ref: ${{ inputs.checkout-ref }}
 | 
				
			||||||
      - name: docker login
 | 
					      - name: docker login
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
					          docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
				
			||||||
| 
						 | 
					@ -159,7 +159,7 @@ jobs:
 | 
				
			||||||
            --build-arg no_proxy=${NO_PROXY} \
 | 
					            --build-arg no_proxy=${NO_PROXY} \
 | 
				
			||||||
            -t ${image}:${TAG} -f ./Dockerfile.k8s .
 | 
					            -t ${image}:${TAG} -f ./Dockerfile.k8s .
 | 
				
			||||||
          # push docker image to public hub
 | 
					          # push docker image to public hub
 | 
				
			||||||
          if [[ "${{ github.event.inputs.public }}" == "true" ]]; then
 | 
					          if [[ "${{ inputs.public }}" == "true" ]]; then
 | 
				
			||||||
            sudo docker push ${image}:${TAG}
 | 
					            sudo docker push ${image}:${TAG}
 | 
				
			||||||
            # tag 'latest'
 | 
					            # tag 'latest'
 | 
				
			||||||
            sudo docker tag ${image}:${TAG} ${image}:latest
 | 
					            sudo docker tag ${image}:${TAG} ${image}:latest
 | 
				
			||||||
| 
						 | 
					@ -179,7 +179,7 @@ jobs:
 | 
				
			||||||
    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
					    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        repository: 'intel-analytics/ipex-llm'
 | 
					        repository: 'intel-analytics/ipex-llm'
 | 
				
			||||||
        ref: ${{ github.event.inputs.checkout-ref }}
 | 
					        ref: ${{ inputs.checkout-ref }}
 | 
				
			||||||
    - name: docker login
 | 
					    - name: docker login
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
					        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
				
			||||||
| 
						 | 
					@ -197,7 +197,7 @@ jobs:
 | 
				
			||||||
          --build-arg no_proxy=${NO_PROXY} \
 | 
					          --build-arg no_proxy=${NO_PROXY} \
 | 
				
			||||||
          -t ${image}:${TAG} -f ./Dockerfile .
 | 
					          -t ${image}:${TAG} -f ./Dockerfile .
 | 
				
			||||||
        # push docker image to public hub
 | 
					        # push docker image to public hub
 | 
				
			||||||
        if [[ "${{ github.event.inputs.public }}" == "true" ]]; then
 | 
					        if [[ "${{ inputs.public }}" == "true" ]]; then
 | 
				
			||||||
          sudo docker push ${image}:${TAG}
 | 
					          sudo docker push ${image}:${TAG}
 | 
				
			||||||
          # tag 'latest'
 | 
					          # tag 'latest'
 | 
				
			||||||
          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
					          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
				
			||||||
| 
						 | 
					@ -217,7 +217,7 @@ jobs:
 | 
				
			||||||
    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
					    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        repository: 'intel-analytics/ipex-llm'
 | 
					        repository: 'intel-analytics/ipex-llm'
 | 
				
			||||||
        ref: ${{ github.event.inputs.checkout-ref }}
 | 
					        ref: ${{ inputs.checkout-ref }}
 | 
				
			||||||
    - name: docker login
 | 
					    - name: docker login
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
					        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
				
			||||||
| 
						 | 
					@ -235,7 +235,7 @@ jobs:
 | 
				
			||||||
          --build-arg no_proxy=${NO_PROXY} \
 | 
					          --build-arg no_proxy=${NO_PROXY} \
 | 
				
			||||||
          -t ${image}:${TAG} -f ./Dockerfile .
 | 
					          -t ${image}:${TAG} -f ./Dockerfile .
 | 
				
			||||||
        # push docker image to public hub
 | 
					        # push docker image to public hub
 | 
				
			||||||
        if [[ "${{ github.event.inputs.public }}" == "true" ]]; then
 | 
					        if [[ "${{ inputs.public }}" == "true" ]]; then
 | 
				
			||||||
          sudo docker push ${image}:${TAG}
 | 
					          sudo docker push ${image}:${TAG}
 | 
				
			||||||
          # tag 'latest'
 | 
					          # tag 'latest'
 | 
				
			||||||
          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
					          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
				
			||||||
| 
						 | 
					@ -255,7 +255,7 @@ jobs:
 | 
				
			||||||
    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
					    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        repository: 'intel-analytics/ipex-llm'
 | 
					        repository: 'intel-analytics/ipex-llm'
 | 
				
			||||||
        ref: ${{ github.event.inputs.checkout-ref }}
 | 
					        ref: ${{ inputs.checkout-ref }}
 | 
				
			||||||
    - name: docker login
 | 
					    - name: docker login
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
					        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
				
			||||||
| 
						 | 
					@ -273,7 +273,7 @@ jobs:
 | 
				
			||||||
          --build-arg no_proxy=${NO_PROXY} \
 | 
					          --build-arg no_proxy=${NO_PROXY} \
 | 
				
			||||||
          -t ${image}:${TAG} -f ./Dockerfile .
 | 
					          -t ${image}:${TAG} -f ./Dockerfile .
 | 
				
			||||||
        # push docker image to public hub
 | 
					        # push docker image to public hub
 | 
				
			||||||
        if [[ "${{ github.event.inputs.public }}" == "true" ]]; then
 | 
					        if [[ "${{ inputs.public }}" == "true" ]]; then
 | 
				
			||||||
          sudo docker push ${image}:${TAG}
 | 
					          sudo docker push ${image}:${TAG}
 | 
				
			||||||
          # tag 'latest'
 | 
					          # tag 'latest'
 | 
				
			||||||
          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
					          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
				
			||||||
| 
						 | 
					@ -293,7 +293,7 @@ jobs:
 | 
				
			||||||
    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
					    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        repository: 'intel-analytics/ipex-llm'
 | 
					        repository: 'intel-analytics/ipex-llm'
 | 
				
			||||||
        ref: ${{ github.event.inputs.checkout-ref }}
 | 
					        ref: ${{ inputs.checkout-ref }}
 | 
				
			||||||
    - name: docker login
 | 
					    - name: docker login
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
					        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
				
			||||||
| 
						 | 
					@ -311,7 +311,7 @@ jobs:
 | 
				
			||||||
          --build-arg no_proxy=${NO_PROXY} \
 | 
					          --build-arg no_proxy=${NO_PROXY} \
 | 
				
			||||||
          -t ${image}:${TAG} -f ./Dockerfile .
 | 
					          -t ${image}:${TAG} -f ./Dockerfile .
 | 
				
			||||||
        # push docker image to public hub
 | 
					        # push docker image to public hub
 | 
				
			||||||
        if [[ "${{ github.event.inputs.public }}" == "true" ]]; then
 | 
					        if [[ "${{ inputs.public }}" == "true" ]]; then
 | 
				
			||||||
          sudo docker push ${image}:${TAG}
 | 
					          sudo docker push ${image}:${TAG}
 | 
				
			||||||
          # tag 'latest'
 | 
					          # tag 'latest'
 | 
				
			||||||
          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
					          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
				
			||||||
| 
						 | 
					@ -331,7 +331,7 @@ jobs:
 | 
				
			||||||
    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
					    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        repository: 'intel-analytics/ipex-llm'
 | 
					        repository: 'intel-analytics/ipex-llm'
 | 
				
			||||||
        ref: ${{ github.event.inputs.checkout-ref }}
 | 
					        ref: ${{ inputs.checkout-ref }}
 | 
				
			||||||
    - name: docker login
 | 
					    - name: docker login
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
					        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
				
			||||||
| 
						 | 
					@ -349,7 +349,7 @@ jobs:
 | 
				
			||||||
          --build-arg no_proxy=${NO_PROXY} \
 | 
					          --build-arg no_proxy=${NO_PROXY} \
 | 
				
			||||||
          -t ${image}:${TAG} -f ./Dockerfile .
 | 
					          -t ${image}:${TAG} -f ./Dockerfile .
 | 
				
			||||||
        # push docker image to public hub
 | 
					        # push docker image to public hub
 | 
				
			||||||
        if [[ "${{ github.event.inputs.public }}" == "true" ]]; then
 | 
					        if [[ "${{ inputs.public }}" == "true" ]]; then
 | 
				
			||||||
          sudo docker push ${image}:${TAG}
 | 
					          sudo docker push ${image}:${TAG}
 | 
				
			||||||
          # tag 'latest'
 | 
					          # tag 'latest'
 | 
				
			||||||
          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
					          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
				
			||||||
| 
						 | 
					@ -368,7 +368,7 @@ jobs:
 | 
				
			||||||
    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
					    - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # actions/checkout@v3
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        repository: 'intel-analytics/ipex-llm'
 | 
					        repository: 'intel-analytics/ipex-llm'
 | 
				
			||||||
        ref: ${{ github.event.inputs.checkout-ref }}
 | 
					        ref: ${{ inputs.checkout-ref }}
 | 
				
			||||||
    - name: docker login
 | 
					    - name: docker login
 | 
				
			||||||
      run: |
 | 
					      run: |
 | 
				
			||||||
        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
					        docker login -u ${DOCKERHUB_USERNAME} -p ${DOCKERHUB_PASSWORD}
 | 
				
			||||||
| 
						 | 
					@ -386,7 +386,7 @@ jobs:
 | 
				
			||||||
          --build-arg no_proxy=${NO_PROXY} \
 | 
					          --build-arg no_proxy=${NO_PROXY} \
 | 
				
			||||||
          -t ${image}:${TAG} -f ./Dockerfile .
 | 
					          -t ${image}:${TAG} -f ./Dockerfile .
 | 
				
			||||||
        # push docker image to public hub
 | 
					        # push docker image to public hub
 | 
				
			||||||
        if [[ "${{ github.event.inputs.public }}" == "true" ]]; then
 | 
					        if [[ "${{ inputs.public }}" == "true" ]]; then
 | 
				
			||||||
          sudo docker push ${image}:${TAG}
 | 
					          sudo docker push ${image}:${TAG}
 | 
				
			||||||
          # tag 'latest'
 | 
					          # tag 'latest'
 | 
				
			||||||
          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
					          sudo docker tag ${image}:${TAG} ${image}:latest
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue