Add the required repobridge config to pagure_hook.cfg
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
This commit is contained in:
parent
fd303fc06b
commit
9fab819693
1 changed files with 21 additions and 0 deletions
|
@ -65,3 +65,24 @@ GITOLITE_BACKEND = 'distgit'
|
||||||
GITOLITE_CELERY_QUEUE = 'gitolite_queue'
|
GITOLITE_CELERY_QUEUE = 'gitolite_queue'
|
||||||
|
|
||||||
BLACKLISTED_GROUPS = ['forks', 'group']
|
BLACKLISTED_GROUPS = ['forks', 'group']
|
||||||
|
|
||||||
|
{% if env == "staging" %}
|
||||||
|
SSH_KEYS_USERNAME_LOOKUP = True
|
||||||
|
SSH_COMMAND_REPOSPANNER = ([
|
||||||
|
"/usr/libexec/repobridge",
|
||||||
|
"--extra", "username", "%(username)s",
|
||||||
|
"--extra", "repotype", "%(repotype)s",
|
||||||
|
"--extra", "project_name", "%(project_name)s",
|
||||||
|
"--extra", "project_user", "%(project_user)s",
|
||||||
|
"--extra", "project_namespace", "%(project_namespace)s",
|
||||||
|
"%(cmd)s",
|
||||||
|
"'pagure/%(repotype)s/%(reponame)s'",
|
||||||
|
], {"REPOBRIDGE_CONFIG": "/etc/repobridge/rpms.json"})
|
||||||
|
SSH_COMMAND_NON_REPOSPANNER = ([
|
||||||
|
"/usr/share/gitolite3/gitolite-shell",
|
||||||
|
"%(username)s",
|
||||||
|
"%(cmd)s",
|
||||||
|
"%(reponame)s",
|
||||||
|
], {})
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue