Skip to content

cloudbees-io/ecs-render-task-definition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

CloudBees action: Render an Amazon ECS task definition

Use this action to render an Amazon Elastic Container Service (ECS) task definition.

Inputs

Table 1. Input details
Input name Data type Required? Description

task-definition

String

No

The path to the ECS task definition JSON file. Required only if task-definition-name is not specified.

container-name

String

Yes

The container name as defined in the ECS task definition (in containerDefinitions).

image

String

Yes

The container image URL.

environment-variables

JSON

No

Container variables , formatted as JSON data in key/value pairs.

environment-variables-path

String

No

The path of the file that contains the environment variables.

Usage example

In your YAML file, add:

      - name: Render task definition
        uses: cloudbees-io/ecs-render-task-definition@v1
        with:
          task-definition: test/taskDefinition.json
          container-name: container_name
          image: ${{ vars.IMAGE_URL }}
          environment-variables: '{"LOG_LEVEL"="info","ENVIRONMENT"="prod"}'
          environment-variables-path: sample/example.json

License

This code is made available under the MIT license.

References

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 7