Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

environment-variables not working #136

Open
joa-queen opened this issue Nov 19, 2021 · 1 comment
Open

environment-variables not working #136

joa-queen opened this issue Nov 19, 2021 · 1 comment

Comments

@joa-queen
Copy link

The error:
Warning: Unexpected input(s) 'environment-variables', valid inputs are ['task-definition', 'container-name', 'image']

The definition:

- name: Fill in the new image ID in the Amazon ECS task definition
      id: task-def
      uses: aws-actions/amazon-ecs-render-task-definition@v1
      with:
        task-definition: ${{ env.ECS_TASK_DEFINITION }}
        container-name: ${{ env.CONTAINER_NAME }}
        image: ${{ steps.build-image.outputs.image }}
        environment-variables: |
          TEST=something
@kubical-moncef
Copy link

kubical-moncef commented Nov 22, 2021

Hello @joaqtor ,
As you can see in the releases section, the latest one (v1.0.24) has been released on August 30th. However the PR which enables handling of env variables (#114) has been merged on October 14th.
While waiting for a new release which includes the PR mentioned above, you can fix your github workflow by using the master ref :

- name: Fill in the new image ID in the Amazon ECS task definition
     id: task-def
     uses: aws-actions/amazon-ecs-render-task-definition@master
     with:
       task-definition: ${{ env.ECS_TASK_DEFINITION }}
       container-name: ${{ env.CONTAINER_NAME }}
       image: ${{ steps.build-image.outputs.image }}
       environment-variables: |
         TEST=something

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants