fix(cgit-taz): Clone depot via SSH
Keys are provided in a Kubernetes secret.
This commit is contained in:
parent
d6a653d7a3
commit
5894d521b9
1 changed files with 2 additions and 4 deletions
|
@ -56,12 +56,10 @@ let
|
|||
in writeShellScriptBin "cgit-launch" ''
|
||||
${coreutils}/bin/mkdir -p /srv/git
|
||||
|
||||
# The cookie file is placed in the correct location by Kubernetes, based on
|
||||
# information stored in a secret.
|
||||
# The SSH keys are placed in the container by Kubernetes.
|
||||
${git}/bin/git clone --mirror \
|
||||
-c http.cookieFile=/var/cgit/gitcookies \
|
||||
-c http.sslcainfo=${cacert}/etc/ssl/certs/ca-bundle.crt \
|
||||
https://source.developers.google.com/p/tazjins-infrastructure/r/depot \
|
||||
ssh://source.developers.google.com:2022/p/tazjins-infrastructure/r/depot \
|
||||
/srv/git/depot
|
||||
|
||||
exec ${thttpdCgit}/bin/thttpd -D -C ${thttpdConfig}
|
||||
|
|
Loading…
Reference in a new issue