CICD-test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kamil Klecha
2021-10-20 00:54:19 +02:00
parent 1050e3e12a
commit ebab360f22
7 changed files with 76 additions and 15 deletions

9
start-nginx.sh Normal file
View File

@@ -0,0 +1,9 @@
#!/usr/bin/env sh
cp /usr/share/nginx/html/js/*.js /tmp
export EXISTING_VARS=$(printenv | awk -F= '{print $1}' | sed 's/^/\$/g' | paste -sd,);
for file in /tmp/*.js;
do
cat $file | envsubst $EXISTING_VARS | tee /usr/share/nginx/html/js/$(basename $file)
done
nginx -g 'daemon off;'