Skip to content
Snippets Groups Projects
Commit 88dd89ad authored by Pierre Smeyers's avatar Pierre Smeyers
Browse files

feat: support multi-lines environment variables substitution

parent 337922ac
No related branches found
No related tags found
No related merge requests found
...@@ -233,7 +233,7 @@ stages: ...@@ -233,7 +233,7 @@ stages:
} }
function awkenvsubst() { function awkenvsubst() {
awk '{while(match($0,"[$]{[^}]*}")) {var=substr($0,RSTART+2,RLENGTH -3);gsub("[$]{"var"}",ENVIRON[var])}}1' awk '{while(match($0,"[$]{[^}]*}")) {var=substr($0,RSTART+2,RLENGTH -3);val=ENVIRON[var];gsub(/["\\]/,"\\\\&", val);gsub("\n", "\\n", val);gsub("\r", "\\r", val);gsub("[$]{"var"}",val)}}1'
} }
# application deployment function # application deployment function
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment