Titles for all pages, custom entrypoint with cache invalidator etag setup so site doesn't do bad things on redeploy
All checks were successful
Build and Test - Staging / determine_version (pull_request) Successful in 35s
Build and Test - Staging / build_and_push (pull_request) Successful in 2m26s
Build and Test - Staging / test (pull_request) Successful in 3s
Build and Test - Staging / deploy_staging (pull_request) Successful in 6s
All checks were successful
Build and Test - Staging / determine_version (pull_request) Successful in 35s
Build and Test - Staging / build_and_push (pull_request) Successful in 2m26s
Build and Test - Staging / test (pull_request) Successful in 3s
Build and Test - Staging / deploy_staging (pull_request) Successful in 6s
This commit is contained in:
14
entrypoint.sh
Executable file
14
entrypoint.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env sh
|
||||
set -e
|
||||
|
||||
# Generate a unique token per container launch
|
||||
TOKEN="$(cat /proc/sys/kernel/random/uuid)" # or: TOKEN="$(date +%s%N)"
|
||||
|
||||
# Write it into a file NGINX will include
|
||||
cat >/etc/nginx/conf.d/_release_token.conf <<EOF
|
||||
# auto-generated at container start
|
||||
set \$release_token "$TOKEN";
|
||||
EOF
|
||||
|
||||
# Then exec nginx
|
||||
exec nginx -g 'daemon off;'
|
||||
Reference in New Issue
Block a user