fix(cgit-taz): Clone depot via SSH

Keys are provided in a Kubernetes secret.
This commit is contained in:
Vincent Ambo 2019-12-18 20:17:06 +00:00
parent d6a653d7a3
commit 5894d521b9

View file

@ -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}