mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Fetch all git data for embedding correct version in docker image (#25361)
Fix #25350
This commit is contained in:
		
							
								
								
									
										3
									
								
								.github/workflows/release-nightly.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/release-nightly.yml
									
									
									
									
										vendored
									
									
								
							@@ -55,6 +55,9 @@ jobs:
 | 
				
			|||||||
    runs-on: ubuntu-latest
 | 
					    runs-on: ubuntu-latest
 | 
				
			||||||
    steps:
 | 
					    steps:
 | 
				
			||||||
      - uses: actions/checkout@v3
 | 
					      - uses: actions/checkout@v3
 | 
				
			||||||
 | 
					      # fetch all commits instead of only the last as some branches are long lived and could have many between versions
 | 
				
			||||||
 | 
					      # fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
 | 
				
			||||||
 | 
					      - run: git fetch --unshallow --quiet --tags --force
 | 
				
			||||||
      - uses: docker/setup-qemu-action@v2
 | 
					      - uses: docker/setup-qemu-action@v2
 | 
				
			||||||
      - uses: docker/setup-buildx-action@v2
 | 
					      - uses: docker/setup-buildx-action@v2
 | 
				
			||||||
      - name: Get cleaned branch name
 | 
					      - name: Get cleaned branch name
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user