Skip to content

Commit

Permalink
feat(actions): update aws-actions/amazon-ecs-render-task-definition@v1 (
Browse files Browse the repository at this point in the history
#1442)

Created automatically.

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] committed May 9, 2024
1 parent 0765ffc commit 9c8c45d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4225e0b507142a2e432b018bc3ccb728559b437a
5f07eab76e1851cbd4e07dea0f3ed53b304475bd
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import kotlin.collections.toTypedArray
* of the form key=value, you can specify multiple variables with multi-line YAML strings.
* @param dockerLabels Create/Override options inside dockerLabels. Each variable is key=value, you
* can specify multiple variables with multi-line YAML.
* @param command The command used by ECS to start the container image
* @param _customInputs Type-unsafe map where you can put any inputs that are not yet supported by
* the binding
* @param _customVersion Allows overriding action's version, for example to use a specific minor
Expand Down Expand Up @@ -76,6 +77,10 @@ public data class AmazonEcsRenderTaskDefinitionV1 private constructor(
* multiple variables with multi-line YAML.
*/
public val dockerLabels: List<String>? = null,
/**
* The command used by ECS to start the container image
*/
public val command: String? = null,
/**
* Type-unsafe map where you can put any inputs that are not yet supported by the binding
*/
Expand All @@ -96,13 +101,14 @@ public data class AmazonEcsRenderTaskDefinitionV1 private constructor(
logConfigurationLogDriver: String? = null,
logConfigurationOptions: List<String>? = null,
dockerLabels: List<String>? = null,
command: String? = null,
_customInputs: Map<String, String> = mapOf(),
_customVersion: String? = null,
) : this(taskDefinition=taskDefinition, containerName=containerName, image=image,
environmentVariables=environmentVariables,
logConfigurationLogDriver=logConfigurationLogDriver,
logConfigurationOptions=logConfigurationOptions, dockerLabels=dockerLabels,
_customInputs=_customInputs, _customVersion=_customVersion)
command=command, _customInputs=_customInputs, _customVersion=_customVersion)

@Suppress("SpreadOperator")
override fun toYamlArguments(): LinkedHashMap<String, String> = linkedMapOf(
Expand All @@ -114,6 +120,7 @@ public data class AmazonEcsRenderTaskDefinitionV1 private constructor(
logConfigurationLogDriver?.let { "log-configuration-log-driver" to it },
logConfigurationOptions?.let { "log-configuration-options" to it.joinToString("\n") },
dockerLabels?.let { "docker-labels" to it.joinToString("\n") },
command?.let { "command" to it },
*_customInputs.toList().toTypedArray(),
).toTypedArray()
)
Expand Down

0 comments on commit 9c8c45d

Please sign in to comment.