-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #84 from CircleCI-Public/add-overrides-option
Enhancement: Add overrides parameter to run-task job and command
- Loading branch information
Showing
2 changed files
with
96 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,9 @@ description: | | |
An orb for working with Amazon Elastic Container Service (ECS). | ||
Supports the EC2 and Fargate launch types and Blue/Green deployment | ||
via CodeDeploy. | ||
Repository link: https://github.com/CircleCI-Public/aws-ecs-orb | ||
|
||
display: | ||
home_url: https://github.com/CircleCI-Public/aws-ecs-orb | ||
|
||
orbs: | ||
aws-cli: circleci/[email protected] | ||
|
@@ -142,6 +144,7 @@ examples: | |
cluster: "cluster1" | ||
task-definition: "myapp" | ||
awsvpc: false | ||
launch-type: "EC2" | ||
|
||
workflows: | ||
run-task: | ||
|
@@ -461,6 +464,15 @@ jobs: | |
type: enum | ||
enum: ["ENABLED", "DISABLED"] | ||
default: "DISABLED" | ||
overrides: | ||
description: | | ||
A list of container overrides in JSON format that specify the name of | ||
a container in the specified task definition and the overrides it | ||
should receive. | ||
Double quotes in the JSON should be escaped e.g.: | ||
{\\\"containerOverrides\\\":[{\\\"name\\\": \\\"sleep\\\", \\\"memory\\\": 512}]} | ||
type: string | ||
default: "" | ||
tags: | ||
description: | | ||
"The metadata that you apply to the task to help you categorize and | ||
|
@@ -501,6 +513,7 @@ jobs: | |
subnet-ids: << parameters.subnet-ids >> | ||
security-group-ids: << parameters.security-group-ids >> | ||
assign-public-ip: << parameters.assign-public-ip >> | ||
overrides: << parameters.overrides >> | ||
tags: << parameters.tags >> | ||
enable-ecs-managed-tags: << parameters.enable-ecs-managed-tags >> | ||
propagate-tags: << parameters.propagate-tags >> | ||
|
@@ -975,6 +988,15 @@ commands: | |
type: enum | ||
enum: ["ENABLED", "DISABLED"] | ||
default: "DISABLED" | ||
overrides: | ||
description: | | ||
A list of container overrides in JSON format that specify the name of | ||
a container in the specified task definition and the overrides it | ||
should receive. | ||
Double quotes in the JSON should be escaped e.g.: | ||
{\\\"containerOverrides\\\":[{\\\"name\\\": \\\"sleep\\\", \\\"memory\\\": 512}]} | ||
type: string | ||
default: "" | ||
tags: | ||
description: | | ||
"The metadata that you apply to the task to help you categorize and | ||
|
@@ -1011,6 +1033,10 @@ commands: | |
echo "Setting --group" | ||
set -- "$@" --group "<<parameters.group>>" | ||
fi | ||
if [ ! -z "<<parameters.overrides>>" ]; then | ||
echo "Setting --overrides" | ||
set -- "$@" --overrides "<<parameters.overrides>>" | ||
fi | ||
if [ ! -z "<<parameters.tags>>" ]; then | ||
echo "Setting --tags" | ||
set -- "$@" --tags "<<parameters.tags>>" | ||
|