Skip to content

Commit

Permalink
fix: limit ci concurency for tf
Browse files Browse the repository at this point in the history
  • Loading branch information
Pactionly committed Sep 22, 2024
1 parent e25693a commit 1e4360e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/apply-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ jobs:
plan:
name: "Terraform Prod plan"
runs-on: ubuntu-latest
concurrency:
group: "tf-prod"
environment:
name: "plan"
needs: build
Expand All @@ -70,6 +72,8 @@ jobs:
apply:
name: "Terraform Prod Apply"
runs-on: ubuntu-latest
concurrency:
group: "tf-prod"
environment:
name: "prod"
needs: [build, plan]
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
paths-ignore:
- "README.md"
- "catalog.yaml"

env:
IMAGE_PATH: ${{ github.repository_owner }}/gratibot

Expand Down Expand Up @@ -67,6 +68,8 @@ jobs:
plan:
name: "Terraform Nonprod plan"
runs-on: ubuntu-latest
concurrency:
group: "tf-nonprod"
needs: build
steps:
- name: Checkout
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ jobs:
apply:
name: "Terraform Apply"
runs-on: ubuntu-latest
concurrency:
group: "tf-nonprod"
environment:
name: "nonprod"
needs: build
Expand Down

0 comments on commit 1e4360e

Please sign in to comment.