-
Notifications
You must be signed in to change notification settings - Fork 36
feat: Inject runtime configuration for GH_APP in NGINX startup script #3962
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
d86c07a
70f590c
fb8f75a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -32,6 +32,12 @@ then | |
| sed -i -r "s/[a-zA-Z]+\.BBS_URL/\"${BBS_SCHEME_BASE}:\/\/${BBS_BASE}\"/g" /var/www/app/gazebo/assets/*.js | ||
| fi | ||
|
|
||
| # Inject runtime config via window.configEnv | ||
| if [[ -n "${CODECOV_GH_APP}" ]]; then | ||
| echo "Setting GH_APP to ${CODECOV_GH_APP}" | ||
| sed -i 's|<head>|<head><script>window.configEnv=window.configEnv||{};window.configEnv.GH_APP="'"${CODECOV_GH_APP}"'";</script>|' /var/www/app/gazebo/index.html | ||
|
||
| fi | ||
|
|
||
| export DOLLAR='$' | ||
| if [ "$CODECOV_FRONTEND_IPV6_DISABLED" ]; then | ||
| echo 'Codecov frontend ipv6 disabled' | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.