Use this action to deploy to an Amazon Elastic Container Service (ECS), using either the service name or an ECS task definition.
Input name | Data type | Required? | Description |
---|---|---|---|
|
String |
No |
The path to the ECS task definition JSON file. Required only if |
|
String |
No |
The name of the ECS service to deploy to. Required only if |
|
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 |
In your YAML file, add:
- name: Deploy task definition
uses: 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
This code is made available under the MIT license.
-
Learn more about using actions in CloudBees workflows.
-
Learn about the CloudBees platform.