Skip to content

Commit 804e984

Browse files
authored
Merge pull request #31 from NgaNaNa/feature/scope-ecs-workflow-only
allow cicd on ecs infra changes. Not on workflow action changes
2 parents e77b00f + 98fc18a commit 804e984

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

.github/workflows/ecs_terraform.yaml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
name: "Terraform CICD - AWS ECS Instance"
22

3-
# Automation for AWS ECS Instance using Terraform is PAUSED. Use/Create manual deployment for now.
3+
# Github workflow triggers based on changes made in specific paths
44
on:
5-
# pull_request:
6-
# branches: [main]
7-
# paths:
8-
# - 'infra/ecs/**'
9-
# - 'infra/envs/**'
10-
# - '.github/workflows/ecs_terraform.yaml'
11-
# push:
12-
# branches: [main]
13-
# paths:
14-
# - 'infra/ecs/**'
15-
# - 'infra/envs/**'
16-
# - '.github/workflows/ecs_terraform.yaml'
17-
workflow_dispatch: {} # Enable manual trigger for the workflow, but still need to configure the trigger in the GitHub UI. Manual deployment hasn't been implemented yet.
5+
pull_request:
6+
branches: [main]
7+
paths:
8+
- 'infra/ecs/**'
9+
- 'infra/envs/**'
10+
- '.github/workflows/ecs_terraform.yaml'
11+
push:
12+
branches: [main]
13+
paths:
14+
- 'infra/ecs/**'
15+
- 'infra/envs/**'
16+
# - '.github/workflows/ecs_terraform.yaml'
17+
# Uncomment below to allow manual execution from GitHub UI
18+
# workflow_dispatch:
1819

1920
permissions:
2021
contents: read

0 commit comments

Comments
 (0)