From 100897778c0e466b27489cb4818c55c1d1ba2407 Mon Sep 17 00:00:00 2001 From: Szymon Richert Date: Wed, 15 Jun 2022 21:34:43 +0200 Subject: [PATCH] Fix initContainer 2 --- chart/gha-runner/templates/deployment.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chart/gha-runner/templates/deployment.yaml b/chart/gha-runner/templates/deployment.yaml index b88b6a0..1ae2e21 100644 --- a/chart/gha-runner/templates/deployment.yaml +++ b/chart/gha-runner/templates/deployment.yaml @@ -44,9 +44,10 @@ spec: cp -Rf /home/github/.gnupg /home/github-new/.gnupg mkdir -p /home/github-new/.ssh - cp -Rf /secrets/id_rsa /home/github-new/.ssh/id_rsa + cp /secrets/id_rsa /home/github-new/.ssh/id_rsa cp /secrets/id_rsa.pub /home/github-new/.ssh/id_rsa.pub cp /secrets/known_hosts /home/github-new/.ssh/known_hosts + chmod 0600 /home/github-new/.ssh/id_rsa volumeMounts: - name: runtime-secrets