diff --git a/.github/workflows/_functionAppDeployTemplate.yml b/.github/workflows/_functionAppDeployTemplate.yml index 6be9d84..2916336 100644 --- a/.github/workflows/_functionAppDeployTemplate.yml +++ b/.github/workflows/_functionAppDeployTemplate.yml @@ -43,6 +43,9 @@ jobs: runs-on: [self-hosted] continue-on-error: false environment: ${{ inputs.environment }} + concurrency: + group: function-${{ inputs.function_name }}-${{ inputs.environment }} + cancel-in-progress: false steps: # Check Out Repository diff --git a/.github/workflows/_terraformEnvironmentTemplate.yml b/.github/workflows/_terraformEnvironmentTemplate.yml index 819451c..4e15156 100644 --- a/.github/workflows/_terraformEnvironmentTemplate.yml +++ b/.github/workflows/_terraformEnvironmentTemplate.yml @@ -100,6 +100,9 @@ jobs: continue-on-error: false environment: ${{ inputs.environment }} needs: [lint] + concurrency: + group: terraform-apply-${{ inputs.config }}-${{ inputs.environment }} + cancel-in-progress: false env: ARM_TENANT_ID: ${{ inputs.tenant_id }} @@ -195,6 +198,9 @@ jobs: environment: ${{ inputs.environment }} if: github.event_name == 'push' || github.event_name == 'release' needs: [plan] + concurrency: + group: terraform-apply-${{ inputs.config }}-${{ inputs.environment }} + cancel-in-progress: false env: ARM_TENANT_ID: ${{ inputs.tenant_id }} diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 0c17548..6f3f479 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -8,6 +8,7 @@ on: - "code/infra/**" - "config/**" - ".github/workflows/terraform.yml" + - ".github/workflows/_terraformEnvironmentTemplate.yml" pull_request: branches: @@ -17,6 +18,7 @@ on: - "code/infra/**" - "config/**" - ".github/workflows/terraform.yml" + - ".github/workflows/_terraformEnvironmentTemplate.yml" jobs: terraform_dev: