bake env configs in build (#246)

This commit is contained in:
Brandon Thomas authored and GitHub committed 2024-04-25 21:50:29 -04:00
1 parent f65c236d5f
commit e04f59b5de
1 file changed
+9
+9
View File
@@ -12,8 +12,17 @@ set -euxo pipefail
echo "Labelling build with short SHA..."
SHORT_SHA=$(echo "${COMMIT_REF}" | cut -c1-8)
echo "Baking current git SHA to code";
find . -type f -exec sed -i "s/CURRENT_STORYTELLER_GIT_VERSION/${SHORT_SHA}/g" {} +
echo "Baking ENV configs to code";
find . -type f -exec sed -i "s/%BUILD_BASE_API%/${BASE_API}/g" {} +
find . -type f -exec sed -i "s/%BUILD_GOOGLE_API%/${GOOGLE_API}/g" {} +
find . -type f -exec sed -i "s/%BUILD_FUNNEL_API%/${FUNNEL_API}/g" {} +
find . -type f -exec sed -i "s/%BUILD_CDN_API%/${CDN_API}/g" {} +
# TODO: Run tests when we add them.
# Run build.