Nico Huber | a1a296f | 2023-06-25 10:07:07 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
Nico Huber | 5407310 | 2023-06-25 11:36:59 +0000 | [diff] [blame^] | 5 | if [ "${GITHUB_OAUTH_CLIENT_ID}" -a "${GITHUB_OAUTH_CLIENT_SECRET}" ]; then |
| 6 | git config -f /var/gerrit/etc/gerrit.config \ |
| 7 | plugin.gerrit-oauth-provider-github-oauth.root-url "https://github.com/" |
| 8 | git config -f /var/gerrit/etc/gerrit.config \ |
| 9 | plugin.gerrit-oauth-provider-github-oauth.client-id "${GITHUB_OAUTH_CLIENT_ID}" |
| 10 | git config -f /var/gerrit/etc/gerrit.config \ |
| 11 | plugin.gerrit-oauth-provider-github-oauth.client-secret "${GITHUB_OAUTH_CLIENT_SECRET}" |
| 12 | fi |
| 13 | |
Nico Huber | a1a296f | 2023-06-25 10:07:07 +0000 | [diff] [blame] | 14 | exec /entrypoint.sh "$@" |