#!/usr/bin/env bash

set -eo pipefail

function exit_with_msg {
    echo $1
    exit $2
}

echo -n "" > docker.env

env_vars=(
    NOTIFY_API_URL
    API_KEY
    FUNCTIONAL_TEST_EMAIL
    FUNCTIONAL_TEST_NUMBER
    EMAIL_TEMPLATE_ID
    SMS_TEMPLATE_ID
    LETTER_TEMPLATE_ID
)

for env_var in "${env_vars[@]}"; do
    echo "${env_var}=${!env_var}" >> docker.env
done

#!/usr/bin/env bash

set -eo pipefail

function exit_with_msg {
    echo $1
    exit $2
}

echo -n "" > docker.env

env_vars=(
    NOTIFY_API_URL
    API_KEY
    FUNCTIONAL_TEST_EMAIL
    FUNCTIONAL_TEST_NUMBER
    EMAIL_TEMPLATE_ID
    SMS_TEMPLATE_ID
    LETTER_TEMPLATE_ID
    EMAIL_REPLY_TO_ID
)

for env_var in "${env_vars[@]}"; do
    echo "${env_var}=${!env_var}" >> docker.env
done

Add EMAIL_REPLY_TO_ID to docker env
Add EMAIL_REPLY_TO_ID to docker env
