Inserts a environment variable into an Amazon ECS task definition JSON file, creating a new task definition file.
Table of Contents
To insert the value production
as an environment variable NODE_ENV
in the task definition file, and then deploy the edited task definition file to ECS:
- name: Render env in Amazon ECS task definition
id: render-env
uses: tarepan/amazon-ecs-render-task-definition-env@v2
with:
task-definition: task-definition.json
container-name: envContainer
env-name: NODE_ENV
env-value: production
- name: Register to Amazon ECS
uses: tarepan/amazon-ecs-register-task-definition@v2
with:
task-definition: ${{ steps.render-env.outputs.task-definition }}
See action.yml for the full documentation for this action's inputs and outputs.
This code is made available under the MIT license.