blob: 86574b1d431cc5bca969c7e5ec54c6ee591eb3cb [file] [log] [blame]
Nico Hubera1a296f2023-06-25 10:07:07 +00001#!/bin/sh
2
3set -e
4
Nico Huber54073102023-06-25 11:36:59 +00005if [ "${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}"
12fi
13
Nico Hubera1a296f2023-06-25 10:07:07 +000014exec /entrypoint.sh "$@"