From 1e4360ec0981aae04439c28b889bc2470dde6bf2 Mon Sep 17 00:00:00 2001 From: Alice Jones <21381891+Pactionly@users.noreply.github.com> Date: Sun, 22 Sep 2024 12:14:51 -0700 Subject: [PATCH] fix: limit ci concurency for tf --- .github/workflows/apply-prod.yml | 4 ++++ .github/workflows/pull-request.yaml | 3 +++ .github/workflows/release.yml | 2 ++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/apply-prod.yml b/.github/workflows/apply-prod.yml index 2d667270..d91dfc84 100644 --- a/.github/workflows/apply-prod.yml +++ b/.github/workflows/apply-prod.yml @@ -45,6 +45,8 @@ jobs: plan: name: "Terraform Prod plan" runs-on: ubuntu-latest + concurrency: + group: "tf-prod" environment: name: "plan" needs: build @@ -70,6 +72,8 @@ jobs: apply: name: "Terraform Prod Apply" runs-on: ubuntu-latest + concurrency: + group: "tf-prod" environment: name: "prod" needs: [build, plan] diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index aa65db05..d6c076c4 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -5,6 +5,7 @@ on: paths-ignore: - "README.md" - "catalog.yaml" + env: IMAGE_PATH: ${{ github.repository_owner }}/gratibot @@ -67,6 +68,8 @@ jobs: plan: name: "Terraform Nonprod plan" runs-on: ubuntu-latest + concurrency: + group: "tf-nonprod" needs: build steps: - name: Checkout diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index afe89670..97512534 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -49,6 +49,8 @@ jobs: apply: name: "Terraform Apply" runs-on: ubuntu-latest + concurrency: + group: "tf-nonprod" environment: name: "nonprod" needs: build