mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 00:20:25 +08:00 
			
		
		
		
	Inspired by https://github.com/go-gitea/gitea/pull/24530#issuecomment-1558815301 This PR use a file filter action to do different CI jobs according changed files types. All types are defined in `.github/file-filters.yml`. Now there are 4 types, `docs`, `backend`, `frontend` and `build`. Then if a PR only changed docs files, those CI jobs which passed the conditions will run, and other types are also like this. --------- Co-authored-by: silverwind <me@silverwind.io>
		
			
				
	
	
		
			24 lines
		
	
	
		
			573 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			573 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
name: docker-dryrun
 | 
						|
 | 
						|
on:
 | 
						|
  pull_request:
 | 
						|
 | 
						|
concurrency:
 | 
						|
  group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
 | 
						|
  cancel-in-progress: true
 | 
						|
 | 
						|
jobs:
 | 
						|
  files-changed:
 | 
						|
    uses: ./.github/workflows/files-changed.yml
 | 
						|
 | 
						|
  docker-dryrun:
 | 
						|
    if: needs.files-changed.outputs.backend == 'true' || needs.files-changed.outputs.frontend == 'true'
 | 
						|
    needs: files-changed
 | 
						|
    runs-on: ubuntu-latest
 | 
						|
    steps:
 | 
						|
      - uses: docker/setup-buildx-action@v2
 | 
						|
      - uses: docker/build-push-action@v4
 | 
						|
        with:
 | 
						|
          push: false
 | 
						|
          tags: gitea/gitea:linux-amd64
 |