Use git credentials.
This commit is contained in:
parent
865e2adedc
commit
cb904c1ee8
|
|
@ -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"
|
||||
value: "limbo"
|
||||
volumeMounts:
|
||||
- name: git-credentials
|
||||
readOnly: true
|
||||
mountPath: "/secrets"
|
||||
Loading…
Reference in New Issue