mirror of
				https://github.com/vdsm/virtual-dsm.git
				synced 2025-11-04 08:54:51 +08:00 
			
		
		
		
	Automatic releases
Automatic releases
This commit is contained in:
		
						commit
						42c328fdd3
					
				
							
								
								
									
										22
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										22
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							@ -60,19 +60,35 @@ jobs:
 | 
				
			|||||||
              docker push "ghcr.io/${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" && \
 | 
					              docker push "ghcr.io/${{ github.repository }}:${{ secrets.MAJOR }}.${{ secrets.MINOR }}" && \
 | 
				
			||||||
              docker push "ghcr.io/${{ github.repository }}:latest"
 | 
					              docker push "ghcr.io/${{ github.repository }}:latest"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  bump:
 | 
					  release:
 | 
				
			||||||
    needs: build
 | 
					    needs: build
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
 | 
					    permissions:
 | 
				
			||||||
 | 
					      contents: write
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
 | 
					    - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					    -
 | 
				
			||||||
 | 
					      name: Create a release
 | 
				
			||||||
 | 
					      uses: kroese/github-release@v4
 | 
				
			||||||
 | 
					      env:
 | 
				
			||||||
 | 
					        GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
 | 
				
			||||||
 | 
					      with:
 | 
				
			||||||
 | 
					        tag: "v${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
 | 
				
			||||||
 | 
					        title: "v${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
 | 
				
			||||||
 | 
					        body: "Release v${{ secrets.MAJOR }}.${{ secrets.MINOR }}"
 | 
				
			||||||
 | 
					    -
 | 
				
			||||||
 | 
					      name: Increment minor version
 | 
				
			||||||
 | 
					      run: |
 | 
				
			||||||
 | 
					        echo "NEW_MINOR=$((${{ secrets.MINOR }}+1))" >> $GITHUB_ENV
 | 
				
			||||||
    -
 | 
					    -
 | 
				
			||||||
      name: Update minor version
 | 
					      name: Update minor version
 | 
				
			||||||
      uses: hmanzur/actions-set-secret@v2.0.0
 | 
					      uses: hmanzur/actions-set-secret@v2.0.0
 | 
				
			||||||
      with:
 | 
					      with:
 | 
				
			||||||
        name: 'MINOR'
 | 
					        name: 'MINOR'
 | 
				
			||||||
        value: $((${{ secrets.MINOR }}+1))
 | 
					        value: ${{ env.NEW_MINOR }}
 | 
				
			||||||
        repository: ${{ github.repository }}
 | 
					        repository: ${{ github.repository }}
 | 
				
			||||||
        token: ${{ secrets.REPO_ACCESS_TOKEN }}
 | 
					        token: ${{ secrets.REPO_ACCESS_TOKEN }}
 | 
				
			||||||
 | 
					  
 | 
				
			||||||
  mirror:
 | 
					  mirror:
 | 
				
			||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    permissions:
 | 
					    permissions:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user