Skip to content
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

feat: support setting GH_APP in docker #2712

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docker/start-nginx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ then
GHE_SCHEME_BASE=${CODECOV_GHE_SCHEME:=https}
GLE_SCHEME_BASE=${CODECOV_GLE_SCHEME:=https}
BBS_SCHEME_BASE=${CODECOV_BBS_SCHEME:=https}
GITHUB_APP_BASE=${CODECOV_GITHUB_APP_SEARCH:=codecov}
echo "Replacing ${SCHEME_BASE} for ${SCHEME} on ${API_BASE} and ${WEB_BASE}"
sed -i "s/${SCHEME_BASE}:\/\/${API_BASE}/${SCHEME}:\/\/${CODECOV_API_HOST}/g" /var/www/app/gazebo/static/js/main.*
sed -i "s/${SCHEME_BASE}:\/\/${WEB_BASE}/${SCHEME}:\/\/${CODECOV_BASE_HOST}/g" /var/www/app/gazebo/static/js/main.*
Expand All @@ -31,7 +32,10 @@ then
echo "Replacing BBS ${BBS_SCHEME_BASE}://${BBS_BASE}"
sed -i "s/r\.[a-zA-Z]\.BBS_URL/\"${BBS_SCHEME_BASE}:\/\/${BBS_BASE}\"/g" /var/www/app/gazebo/static/js/main.*
fi

if [ -n "${CODECOV_GITHUB_APP}" ]; then
echo "Replacing Github App ${GITHUB_APP_BASE} with ${CODECOV_GITHUB_APP}"
sed -i "s/GH_APP:\"${GITHUB_APP_BASE}\"/GH_APP:\"${CODECOV_GITHUB_APP}\"/g" /var/www/app/gazebo/static/js/main.*
fi
export DOLLAR='$'
if [ "$CODECOV_FRONTEND_IPV6_DISABLED" ]; then
echo 'Codecov frontend ipv6 disabled'
Expand Down