diff --git a/limbo-branch-trigger/limbo-branch-trigger.yaml b/limbo-branch-trigger/limbo-branch-trigger.yaml index 56c67b4..8b3f9f7 100644 --- a/limbo-branch-trigger/limbo-branch-trigger.yaml +++ b/limbo-branch-trigger/limbo-branch-trigger.yaml @@ -15,6 +15,10 @@ spec: labels: app: limbo-branch-trigger spec: + volumes: + - name: git-credentials + secret: + secretName: git-credentials containers: - name: branch-trigger image: harbor.internal.jpace121.net/k8s/j7s_branch_trigger:latest @@ -22,6 +26,8 @@ spec: args: - mkdir ~/.ssh; chmod 700 ~/.ssh; + cp -r /secrets/. ~/.ssh; + chmod -R 400 ~/.ssh/*; ssh-keyscan -H -p 2222 git.jpace121.net >> ~/.ssh/known_hosts; j7s_branch_trigger env: @@ -30,4 +36,8 @@ spec: - name: J7S_URL value: "el-limbo-pipeline-listener.j7s-ci.svc.cluster.local:8080" - name: J7S_REPO_NAME - value: "limbo" \ No newline at end of file + value: "limbo" + volumeMounts: + - name: git-credentials + readOnly: true + mountPath: "/secrets" \ No newline at end of file