Skip to content

Commit

Permalink
adjusting workflow job triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbass committed May 13, 2024
1 parent 96093d6 commit c5d506e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,19 @@ jobs:
with:
filters: |
deploy-iac:
- 'tofu/**'
- '.github/workflows/**'
- 'tofu/modules/**'
- 'tofu/environments/stage/**'
- '.github/workflows/deploy-production.yml'
deploy-backend:
- 'backend/**'
- 'tofu/modules/services/backend-service/**'
- 'tofu/environments/stage/services/backend-service/**'
- '.github/workflows/deploy-production.yml'
deploy-frontend:
- 'frontend/**'
- 'tofu/modules/services/frontend-infra/**'
- 'tofu/environments/stage/services/frontend-infra/**'
- '.github/workflows/deploy-production.yml'
deploy-iac:
needs: detect-changes
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ jobs:
- 'backend/**'
- 'tofu/modules/services/backend-service/**'
- 'tofu/environments/stage/services/backend-service/**'
- '.github/workflows/deploy-staging.yml'
deploy-frontend:
- 'frontend/**'
- 'tofu/modules/services/frontend-infra/**'
- 'tofu/environments/stage/services/frontend-infra/**'
- '.github/workflows/deploy-staging.yml'
deploy-iac:
needs: detect-changes
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ jobs:
filters: |
validate-iac:
- 'tofu/**'
- '.github/workflows/**'
- '.github/workflows/validate.yml'
validate-backend:
- 'backend/**'
- 'tofu/modules/services/backend-service/**'
- 'tofu/environments/stage/services/backend-service/**'
- '.github/workflows/validate.yml'
validate-frontend:
- 'frontend/**'
- '.github/workflows/validate.yml'
validate-iac:
needs: detect-changes
Expand Down

0 comments on commit c5d506e

Please sign in to comment.