From 98fc18aa7da6c9fa28f1ad7151c49c645d91c235 Mon Sep 17 00:00:00 2001 From: Nga <92612527+NgaNaNa@users.noreply.github.com> Date: Wed, 4 Jun 2025 14:07:36 +0930 Subject: [PATCH] allow cicd on ecs workflow, but not to push --- .github/workflows/ecs_terraform.yaml | 29 ++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/ecs_terraform.yaml b/.github/workflows/ecs_terraform.yaml index 69801f3..b41a523 100644 --- a/.github/workflows/ecs_terraform.yaml +++ b/.github/workflows/ecs_terraform.yaml @@ -1,20 +1,21 @@ name: "Terraform CICD - AWS ECS Instance" -# Automation for AWS ECS Instance using Terraform is PAUSED. Use/Create manual deployment for now. +# Github workflow triggers based on changes made in specific paths on: - # pull_request: - # branches: [main] - # paths: - # - 'infra/ecs/**' - # - 'infra/envs/**' - # - '.github/workflows/ecs_terraform.yaml' - # push: - # branches: [main] - # paths: - # - 'infra/ecs/**' - # - 'infra/envs/**' - # - '.github/workflows/ecs_terraform.yaml' - 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. + pull_request: + branches: [main] + paths: + - 'infra/ecs/**' + - 'infra/envs/**' + - '.github/workflows/ecs_terraform.yaml' + push: + branches: [main] + paths: + - 'infra/ecs/**' + - 'infra/envs/**' + # - '.github/workflows/ecs_terraform.yaml' + # Uncomment below to allow manual execution from GitHub UI + # workflow_dispatch: permissions: contents: read