Commit 9d9926fd authored by tom's avatar tom

[skip ci] fix loading envs from docker build stage

parent 43e2b720
...@@ -11,6 +11,7 @@ truncate -s 0 $output_file; ...@@ -11,6 +11,7 @@ truncate -s 0 $output_file;
# Check if the .env file exists and load ENVs from it # Check if the .env file exists and load ENVs from it
if [ -f .env ]; then if [ -f .env ]; then
source .env source .env
export $(cut -d= -f1 .env)
fi fi
echo "window.__envs = {" >> $output_file; echo "window.__envs = {" >> $output_file;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment