#!/usr/bin/env bash # set -o errexit set -o nounset set -o pipefail SERVICE=$1 export $(xargs < ./config/flow-platform-services.cfg) mkdir -p build/${SERVICE} for i in $(find "./templates/${SERVICE}" -mindepth 1 -type f); do file=$(basename ${i}) envsubst < "./templates/${SERVICE}/${file}" > "./build/${SERVICE}/${file}" done