about summary refs log tree commit diff
path: root/services/cgit-taz
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-18T20·21+0000
committerVincent Ambo <tazjin@google.com>2019-12-18T20·21+0000
commitc551f35b03479e3cd02baca0f1c8c8e7a0f07f6f (patch)
treeccf5f073b5aac2056cb1424c64df1b1c100b4c8f /services/cgit-taz
parent5894d521b9fcc0d8f9eba9cf6b08544b8770dc7e (diff)
fix(cgit-taz): Pin SSH into image via Nix r/192
Diffstat (limited to 'services/cgit-taz')
-rw-r--r--services/cgit-taz/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/cgit-taz/default.nix b/services/cgit-taz/default.nix
index 6f075dc64d59..b3727923223d 100644
--- a/services/cgit-taz/default.nix
+++ b/services/cgit-taz/default.nix
@@ -57,6 +57,7 @@ in writeShellScriptBin "cgit-launch" ''
   ${coreutils}/bin/mkdir -p /srv/git
 
   # The SSH keys are placed in the container by Kubernetes.
+  export GIT_SSH_COMMAND="${openssh}/bin/ssh -F /var/cgit/ssh_config"
   ${git}/bin/git clone --mirror \
     -c http.sslcainfo=${cacert}/etc/ssl/certs/ca-bundle.crt \
     ssh://source.developers.google.com:2022/p/tazjins-infrastructure/r/depot \