From 706cb22d37327fb8c8133bab8d7f757f0e0dbf73 Mon Sep 17 00:00:00 2001 From: LeoDiazL <116020815+LeoDiazL@users.noreply.github.com> Date: Wed, 10 Sep 2025 15:06:11 -0300 Subject: [PATCH 1/2] Add aws_ecs_task_ignore_definition input Added a new input to toggle ignoring task definition changes after deployment. --- action.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/action.yaml b/action.yaml index adc100e..2b64f17 100644 --- a/action.yaml +++ b/action.yaml @@ -72,6 +72,9 @@ inputs: aws_ecs_task_name: description: 'Elastic Container Service task name' required: false + aws_ecs_task_ignore_definition: + description: 'Toggle to ignore task definition changes after first deployment. Useful when using external tools to manage the task definition.' + required: false aws_ecs_task_execution_role: description: 'Elastic Container Service task execution role name from IAM. Defaults to "ecsTaskExecutionRole"' required: false @@ -304,7 +307,7 @@ runs: steps: - name: Deploy with BitOps id: deploy - uses: bitovi/github-actions-commons@v1 + uses: bitovi/github-actions-commons@add-aws_ecs_task_ignore_definition with: # Current repo vars gh_action_repo: ${{ github.action_path }} @@ -335,6 +338,7 @@ runs: aws_ecs_service_launch_type: ${{ inputs.aws_ecs_service_launch_type }} aws_ecs_task_type: ${{ inputs.aws_ecs_task_type }} aws_ecs_task_name: ${{ inputs.aws_ecs_task_name }} + aws_ecs_task_ignore_definition: ${{ inputs.aws_ecs_task_ignore_definition }} aws_ecs_task_execution_role: ${{ inputs.aws_ecs_task_execution_role }} aws_ecs_task_json_definition_file: ${{ inputs.aws_ecs_task_json_definition_file }} aws_ecs_task_network_mode: ${{ inputs.aws_ecs_task_network_mode }} From b0d8776ab25f9240b349d99bcc56af7bfbcd4c4e Mon Sep 17 00:00:00 2001 From: LeoDiazL Date: Thu, 11 Sep 2025 18:45:42 -0300 Subject: [PATCH 2/2] Adjusting to latest commons deployment. --- README.md | 1 + action.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 84c5a38..3fe707c 100644 --- a/README.md +++ b/README.md @@ -185,6 +185,7 @@ The following inputs can be used as `step.with` keys | `aws_ecs_service_launch_type`| String | Configuration type. Could be `EC2`, `FARGATE` or `EXTERNAL`. Defaults to `FARGATE`. | | `aws_ecs_task_type`| String | Configuration type. Could be `EC2`, `FARGATE` or empty. Will default to `aws_ecs_service_launch_type` if none defined. (Blank if `EXTERNAL`). | | `aws_ecs_task_name`| String | Elastic Container Service task name. If task is defined with a JSON file, should be the same as the container name. | +| `aws_ecs_task_ignore_definition` | Boolean | Ignores changes done in the ECS Tasks and services. That way stack can be managed from outside Terraform. Defaults to `false` | | `aws_ecs_task_execution_role`| String | Elastic Container Service task execution role name from IAM. Defaults to `ecsTaskExecutionRole`. | | `aws_ecs_task_json_definition_file`| String | Name of the json file containing task definition. Overrides every other input. | | `aws_ecs_task_network_mode`| String | Network type to use in task definition. One of `none`, `bridge`, `awsvpc`, and `host`. | diff --git a/action.yaml b/action.yaml index 2b64f17..1a84b18 100644 --- a/action.yaml +++ b/action.yaml @@ -307,7 +307,7 @@ runs: steps: - name: Deploy with BitOps id: deploy - uses: bitovi/github-actions-commons@add-aws_ecs_task_ignore_definition + uses: bitovi/github-actions-commons@v1 with: # Current repo vars gh_action_repo: ${{ github.action_path }}