Skip to content

Commit 559b6be

Browse files
authored
Merge pull request #177 from PerfectThymeTech/marvinbuss/add_concurrency
Add Concurrency in Workflow & TF Unlock
2 parents 3b30a43 + a6a3d28 commit 559b6be

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

.github/workflows/_functionAppDeployTemplate.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
runs-on: [self-hosted]
4444
continue-on-error: false
4545
environment: ${{ inputs.environment }}
46+
concurrency:
47+
group: function-${{ inputs.function_name }}-${{ inputs.environment }}
48+
cancel-in-progress: false
4649

4750
steps:
4851
# Check Out Repository

.github/workflows/_terraformEnvironmentTemplate.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ jobs:
100100
continue-on-error: false
101101
environment: ${{ inputs.environment }}
102102
needs: [lint]
103+
concurrency:
104+
group: terraform-apply-${{ inputs.config }}-${{ inputs.environment }}
105+
cancel-in-progress: false
103106

104107
env:
105108
ARM_TENANT_ID: ${{ inputs.tenant_id }}
@@ -195,6 +198,9 @@ jobs:
195198
environment: ${{ inputs.environment }}
196199
if: github.event_name == 'push' || github.event_name == 'release'
197200
needs: [plan]
201+
concurrency:
202+
group: terraform-apply-${{ inputs.config }}-${{ inputs.environment }}
203+
cancel-in-progress: false
198204

199205
env:
200206
ARM_TENANT_ID: ${{ inputs.tenant_id }}

.github/workflows/terraform.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
- "code/infra/**"
99
- "config/**"
1010
- ".github/workflows/terraform.yml"
11+
- ".github/workflows/_terraformEnvironmentTemplate.yml"
1112

1213
pull_request:
1314
branches:
@@ -17,6 +18,7 @@ on:
1718
- "code/infra/**"
1819
- "config/**"
1920
- ".github/workflows/terraform.yml"
21+
- ".github/workflows/_terraformEnvironmentTemplate.yml"
2022

2123
jobs:
2224
terraform_dev:

0 commit comments

Comments
 (0)