Skip to content

Commit 8716f15

Browse files
fix: team-ns build templates for git credentials (#2068)
Co-authored-by: Cas Lubbers <[email protected]>
1 parent c0f4765 commit 8716f15

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

charts/team-ns/templates/builds/buildpack.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ spec:
1313
workspaces:
1414
- name: shared-data
1515
- name: docker-credentials
16+
{{- if or (not .externalRepo) .secretName }}
1617
- name: git-credentials
18+
{{- end }}
1719
tasks:
1820
- name: fetch-source
1921
taskRef:
@@ -22,8 +24,10 @@ spec:
2224
workspaces:
2325
- name: output
2426
workspace: shared-data
27+
{{- if or (not .externalRepo) .secretName }}
2528
- name: ssh-directory
2629
workspace: git-credentials
30+
{{- end }}
2731
params:
2832
- name: url
2933
value: {{ .mode.buildpacks.repoUrl }}

charts/team-ns/templates/builds/docker.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ spec:
1414
workspaces:
1515
- name: shared-data
1616
- name: docker-credentials
17+
{{- if or (not .externalRepo) .secretName }}
1718
- name: git-credentials
19+
{{- end }}
1820
tasks:
1921
- name: fetch-source
2022
taskRef:
@@ -23,8 +25,10 @@ spec:
2325
workspaces:
2426
- name: output
2527
workspace: shared-data
28+
{{- if or (not .externalRepo) .secretName }}
2629
- name: ssh-directory
2730
workspace: git-credentials
31+
{{- end }}
2832
params:
2933
- name: url
3034
value: {{ .mode.docker.repoUrl }}

0 commit comments

Comments
 (0)