Use this action to deploy to an Amazon Elastic Container Service (ECS), using either the service name or an ECS task definition.
| All CloudBees action repositories are listed at CloudBees, Inc. on GitHub. |
Inputs
| Input name | Data type | Required? | Description |
|---|---|---|---|
|
String |
Required only if |
The path to the ECS task definition JSON file. |
|
String |
Required only if |
The name of the ECS service to deploy to. |
|
String |
Yes |
The name of the ECS cluster to deploy to. |
|
Boolean |
Yes |
Whether to wait for the ECS service to reach a stable state after deploying the new task definition. Default value is |
|
String |
Yes |
The amount of time to wait for the ECS service to reach a stable state, in minutes. The default is |
|
Boolean |
Yes |
Whether to force a new service deployment. Default value is |
Usage example
In your YAML file, add:
- name: Deploy task definition uses: https://github.com/cloudbees-io/ecs-deploy-task-definition@v1 with: task-definition: test/taskDefinition.json service: ECS_service_name cluster: ECS_cluster_name wait-for-service-stability: true wait-for-minutes: 6 hours force-new-deployment: true