You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
<!-- action-docs-description -->
4
4
## Description
5
5
6
-
Run an AWS ECS Fargate task and execute a custom command. See the log output of the command that is executed.
6
+
Run an AWS ECS Fargate task and execute a custom commands. See the log output of the commands.
7
7
<!-- action-docs-description -->
8
8
9
9
### Details
@@ -42,6 +42,10 @@ This action is great for executing migrations or other pre/post deployment steps
42
42
override-container-environment: |
43
43
AWS_REGION=us-east-1
44
44
FOO=baz
45
+
46
+
task-wait-until-stopped: true
47
+
task-start-max-wait-time: 120
48
+
task-stopped-max-wait-time: 300
45
49
```
46
50
47
51
#### Minimal example
@@ -97,7 +101,9 @@ Will pass the following command to the container on the AWS ECS Fargate task:
97
101
| override-container-command | The command to run on the container if `override-container` is passed. | `false` | |
98
102
| override-container-environment | Add or override existing environment variables if `override-container` is passed. Provide one per line in key=value format. | `false` | |
99
103
| tail-logs | If set to true, will try to extract the logConfiguration for the first container in the task definition. If `override-container` is passed, it will extract the logConfiguration from that container. Tailing logs is only possible if the provided container uses the `awslogs` logDriver. | `false` | true |
100
-
| task-stopped-wait-for-max-attempts | How many times to check if the task is stopped before failing the action. The delay between each check is 6 seconds. | `false` | 100 |
104
+
| task-wait-until-stopped | Whether to wait for the task to stop before finishing the action. If set to false, the action will finish immediately after the task reaches the `RUNNING` state (fire and forget). | `false` | true |
105
+
| task-start-max-wait-time | How long to wait for the task to start (i.e. reach the `RUNNING` state) in seconds. If the task does not start within this time, the pipeline will fail. | `false` | 120 |
106
+
| task-stopped-max-wait-time | How long to wait for the task to stop (i.e. reach the `STOPPED` state) in seconds. The task will not be canceled after this time, the pipeline will just be marked as failed. | `false` | 300 |
101
107
<!-- action-docs-inputs -->
102
108
103
109
<!-- action-docs-outputs -->
@@ -107,7 +113,7 @@ Will pass the following command to the container on the AWS ECS Fargate task:
107
113
| --- | --- |
108
114
| task-arn | The full ARN for the task that was ran. |
109
115
| task-id | The ID for the task that was ran. |
110
-
| log-output | The log output of the task that was ran, if `tail-logs` was set to true. |
116
+
| log-output | The log output of the task that was ran, if `tail-logs` and `task-wait-until-stopped` are set to true. |
0 commit comments