Update .gitea/workflows/build-image.yml
This commit is contained in:
		@@ -7,22 +7,21 @@ on:
 | 
				
			|||||||
jobs:
 | 
					jobs:
 | 
				
			||||||
  init:
 | 
					  init:
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    outputs:
 | 
				
			||||||
 | 
					      iventoy: ${{ steps.iventoy.outputs.version }}
 | 
				
			||||||
 | 
					      buildOrNot: ${{ steps.buildOrNot.outputs.buildOrNot }}
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - name: Install jq
 | 
					      - name: Install jq
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          sudo apt-get update
 | 
					          sudo apt-get update
 | 
				
			||||||
          sudo apt-get install jq -y
 | 
					          sudo apt-get install jq -y
 | 
				
			||||||
      # Your other steps here
 | 
					
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					 | 
				
			||||||
    outputs:
 | 
					 | 
				
			||||||
      iventoy: ${{ steps.iventoy.outputs.version }}
 | 
					 | 
				
			||||||
      buildOrNot: ${{ steps.buildOrNot.outputs.buildOrNot }}
 | 
					 | 
				
			||||||
    steps:
 | 
					 | 
				
			||||||
      - name: get latest versions
 | 
					      - name: get latest versions
 | 
				
			||||||
        id: iventoy
 | 
					        id: iventoy
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          version=$(curl -s https://api.github.com/repos/ventoy/PXE/releases/latest | grep "tag_name" | cut -d'"' -f4)
 | 
					          version=$(curl -s https://api.github.com/repos/ventoy/PXE/releases/latest | grep "tag_name" | cut -d'"' -f4)
 | 
				
			||||||
          echo "version=${version#'v'}" >> $GITEA_OUTPUT
 | 
					          echo "version=${version#'v'}" >> $GITEA_OUTPUT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Check labels of the latest image on Docker Hub
 | 
					      - name: Check labels of the latest image on Docker Hub
 | 
				
			||||||
        id: buildOrNot
 | 
					        id: buildOrNot
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user