-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jan-Peter Voigt
committed
Sep 14, 2023
1 parent
0263157
commit 255cf5f
Showing
4 changed files
with
7,772 additions
and
4,030 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#/bin/sh | ||
|
||
# create nginx config from evironment | ||
# *prevent envsubst from killing nginx vars with 'tr' and '@'* | ||
cat <<EOT | envsubst | tr '@' '$' >/GH_OAUTH_CLIENT.conf | ||
set @CLIENT_ID $CLIENT_ID; | ||
set @CLIENT_SECRET $CLIENT_SECRET; | ||
EOT | ||
|
||
cat /config.json | jq --arg CLIENT_ID "$CLIENT_ID" '.repository += { "CLIENT_ID": $CLIENT_ID }' >/app/config.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.