Skip to content

Interpolating env vars with variables does not work #2128

@ryanpodonnell1

Description

@ryanpodonnell1

Description

$ task -t ./Taskfile2.yaml example
task: [example] echo 'account_'
account_
task -t Taskfile2.yaml example TIER=dev
task: [example] echo 'account_'
account_

Version

3.42.1

Operating system

linux

Experiments Enabled

No response

Example Taskfile

version: "3"

vars:
  TIER: '{{ .TIER | default "dev"}}'


env:
  AWS_PROFILE: "account_{{ .TIER }}"


tasks:
 example:
  cmds:
  - echo '{{ .AWS_PROFILE }}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions