Add concurrency limits on all workflows to eliminate wasted cycles (#2603)
This commit is contained in:
		
							parent
							
								
									44e9b7d8eb
								
							
						
					
					
						commit
						34fdbf1231
					
				|  | @ -28,6 +28,10 @@ env: | |||
| permissions: | ||||
|   contents: write | ||||
| 
 | ||||
| concurrency: | ||||
|   group: ${{ github.workflow }} | ||||
|   cancel-in-progress: true | ||||
| 
 | ||||
| jobs: | ||||
|   lint-chart: | ||||
|     name: Lint Chart | ||||
|  |  | |||
|  | @ -25,6 +25,10 @@ env: | |||
|   TARGET_ORG: actions-runner-controller | ||||
|   TARGET_REPO: actions-runner-controller | ||||
| 
 | ||||
| concurrency: | ||||
|   group: ${{ github.workflow }} | ||||
|   cancel-in-progress: true | ||||
| 
 | ||||
| jobs: | ||||
|   release-controller: | ||||
|     name: Release | ||||
|  |  | |||
|  | @ -19,6 +19,10 @@ env: | |||
|   TARGET_WORKFLOW: release-runners.yaml | ||||
|   DOCKER_VERSION: 20.10.23 | ||||
| 
 | ||||
| concurrency: | ||||
|   group: ${{ github.workflow }} | ||||
|   cancel-in-progress: true | ||||
| 
 | ||||
| jobs: | ||||
|   build-runners: | ||||
|     name: Trigger Build and Push of Runner Images | ||||
|  |  | |||
|  | @ -27,6 +27,13 @@ env: | |||
| permissions: | ||||
|   contents: read | ||||
| 
 | ||||
| concurrency: | ||||
|   # This will make sure we only apply the concurrency limits on pull requests  | ||||
|   # but not pushes to master branch by making the concurrency group name unique | ||||
|   # for pushes | ||||
|   group: ${{ github.head_ref || github.run_id }} | ||||
|   cancel-in-progress: true | ||||
| 
 | ||||
| jobs: | ||||
|   validate-chart: | ||||
|     name: Lint Chart | ||||
|  |  | |||
|  | @ -12,6 +12,13 @@ on: | |||
| permissions: | ||||
|   contents: read | ||||
| 
 | ||||
| concurrency: | ||||
|   # This will make sure we only apply the concurrency limits on pull requests  | ||||
|   # but not pushes to master branch by making the concurrency group name unique | ||||
|   # for pushes | ||||
|   group: ${{ github.head_ref || github.run_id }} | ||||
|   cancel-in-progress: true | ||||
| 
 | ||||
| jobs: | ||||
|   shellcheck: | ||||
|     name: runner / shellcheck | ||||
|  |  | |||
|  | @ -18,6 +18,13 @@ env: | |||
|   IMAGE_NAME: "arc-test-image" | ||||
|   IMAGE_VERSION: "0.4.0" | ||||
| 
 | ||||
| concurrency: | ||||
|   # This will make sure we only apply the concurrency limits on pull requests  | ||||
|   # but not pushes to master branch by making the concurrency group name unique | ||||
|   # for pushes | ||||
|   group: ${{ github.head_ref || github.run_id }} | ||||
|   cancel-in-progress: true | ||||
| 
 | ||||
| jobs: | ||||
|   default-setup: | ||||
|     runs-on: ubuntu-latest | ||||
|  |  | |||
|  | @ -33,7 +33,11 @@ env: | |||
|   HELM_VERSION: v3.8.0 | ||||
| 
 | ||||
| permissions: | ||||
|  packages: write | ||||
|   packages: write | ||||
| 
 | ||||
| concurrency: | ||||
|   group: ${{ github.workflow }} | ||||
|   cancel-in-progress: true | ||||
| 
 | ||||
| jobs: | ||||
|   build-push-image: | ||||
|  |  | |||
|  | @ -23,6 +23,13 @@ env: | |||
| permissions: | ||||
|   contents: read | ||||
| 
 | ||||
| concurrency: | ||||
|   # This will make sure we only apply the concurrency limits on pull requests  | ||||
|   # but not pushes to master branch by making the concurrency group name unique | ||||
|   # for pushes | ||||
|   group: ${{ github.head_ref || github.run_id }} | ||||
|   cancel-in-progress: true | ||||
| 
 | ||||
| jobs: | ||||
|   validate-chart: | ||||
|     name: Lint Chart | ||||
|  |  | |||
|  | @ -37,6 +37,10 @@ permissions: | |||
|   contents: read | ||||
|   packages: write | ||||
| 
 | ||||
| concurrency: | ||||
|   group: ${{ github.workflow }} | ||||
|   cancel-in-progress: true | ||||
| 
 | ||||
| env: | ||||
|   # Safeguard to prevent pushing images to registeries after build | ||||
|   PUSH_TO_REGISTRIES: true | ||||
|  |  | |||
|  | @ -10,6 +10,13 @@ on: | |||
|   schedule: | ||||
|     - cron: '30 1 * * 0' | ||||
| 
 | ||||
| concurrency: | ||||
|   # This will make sure we only apply the concurrency limits on pull requests  | ||||
|   # but not pushes to master branch by making the concurrency group name unique | ||||
|   # for pushes | ||||
|   group: ${{ github.head_ref || github.run_id }} | ||||
|   cancel-in-progress: true | ||||
| 
 | ||||
| jobs: | ||||
|   analyze: | ||||
|     name: Analyze | ||||
|  |  | |||
|  | @ -18,6 +18,13 @@ on: | |||
| permissions: | ||||
|   contents: read | ||||
| 
 | ||||
| concurrency: | ||||
|   # This will make sure we only apply the concurrency limits on pull requests  | ||||
|   # but not pushes to master branch by making the concurrency group name unique | ||||
|   # for pushes | ||||
|   group: ${{ github.head_ref || github.run_id }} | ||||
|   cancel-in-progress: true | ||||
| 
 | ||||
| jobs: | ||||
|   fmt: | ||||
|     runs-on: ubuntu-latest | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue