Skip to content

Commit

Permalink
hotfix multiline vars
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocascio committed Dec 12, 2019
1 parent a71ed4c commit 6127566
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ set -e o pipefail

env_variables=$(jq -n 'env' | jq --arg CONTAINER "$CONTAINER_NAME" -r 'keys[] as $k | "-e \($CONTAINER) \($k) \"\(values[$k])\""')

eval "ecs deploy $CLUSTER_NAME $SERVICE_NAME --task $TASK_NAME $env_variables --exclusive-env"
command=$(printf "ecs deploy $CLUSTER_NAME $SERVICE_NAME --task $TASK_NAME $env_variables --exclusive-env")

eval $command

0 comments on commit 6127566

Please sign in to comment.