mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-03 08:57:54 +00:00
bake env configs in build (#246)
This commit is contained in:
1 parent
f65c236d5f
commit
e04f59b5de
1 file changed
+9
@@ -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.
|
||||
|
||||
Reference in new issue
Block a user