I have linux target and one of my steps is to overwrite one of the files on this target.
The problem is that i dont get the variables in the end file, i get the text.
For example instead of this -
AWS_SECRET_ACCESS_KEY=UIHBDEIEUDEU
I got this -
AWS_SECRET_ACCESS_KEY=$(get_octopusvariable “AWS_SECRET_ACCESS_KEY”)
Here is my bash script:
#!bin/bash
cat > /home/docker/docker-env/octopus-deployment.env <<- "EOF"
export AWS_DEFAULT_REGION=$(get_octopusvariable "AWS_DEFAULT_REGION")
export AUTH_TOKEN=$(get_octopusvariable "AUTH_TOKEN")
export SYSTEM_EMAIL_ADDRESS=$(get_octopusvariable "SYSTEM_EMAIL_ADDRESS")
export AWS_SECRET_ACCESS_KEY=$(get_octopusvariable "AWS_SECRET_ACCESS_KEY")
export AWS_ACCESS_KEY_ID=$(get_octopusvariable "AWS_ACCESS_KEY_ID")
EOF
Is there any way to pass Octopus variables inside the file on remote target?
Thank you.