Skip to content

Commit

Permalink
feature(apps/prod/tekton/configs): git clone with git-cdn (#822)
Browse files Browse the repository at this point in the history
git url instead is configurated in `.gitconfig` file of the secret.

Signed-off-by: wuhuizuo <wuhuizuo@126.com>

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo authored Dec 5, 2023
1 parent bd7f525 commit 6fa83d0
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ Chart.lock
/charts/**/*.tgz

# IDEs
/.vscode
.vscode
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ spec:
description: The workspace where the git repo will be cloned.
- name: dockerconfig
description: Includes a docker `config.json`
- name: git-credentials
description: secret contains ssh private key in `id_rsa` key.
- name: git-basic-auth
description: secret containing a .gitconfig and .git-credentials file.
optional: true
- name: mac-ssh-credentials
description: secret contains ssh private key in `id_rsa` key for login mac
Expand All @@ -62,8 +62,8 @@ spec:
workspaces:
- name: output
workspace: source
- name: ssh-directory
workspace: git-credentials
- name: basic-auth
workspace: git-basic-auth
- name: get-release-ver
taskSpec:
results:
Expand Down
8 changes: 4 additions & 4 deletions apps/prod/tekton/configs/pipelines/pingcap-build-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ spec:
description: The workspace where the git repo will be cloned.
- name: dockerconfig
description: Includes a docker `config.json`
- name: git-credentials
description: secret contains ssh private key in `id_rsa` key.
- name: git-basic-auth
description: secret containing a .gitconfig and .git-credentials file.
optional: true
- name: mac-ssh-credentials
description: secret contains ssh private key in `id_rsa` key for login mac
Expand All @@ -64,8 +64,8 @@ spec:
workspaces:
- name: output
workspace: source
- name: ssh-directory
workspace: git-credentials
- name: basic-auth
workspace: git-basic-auth
- name: get-release-ver
taskSpec:
results:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ spec:
resources:
requests:
storage: 10Gi
- name: git-credentials # need to fetch some private repositories.
- name: git-basic-auth # need to fetch some private repositories.
secret:
secretName: git-credentials
secretName: git-credentials-basic
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
Expand Down Expand Up @@ -116,9 +116,9 @@ spec:
resources:
requests:
storage: 10Gi
- name: git-credentials # need to fetch some private repositories.
- name: git-basic-auth # need to fetch some private repositories.
secret:
secretName: git-credentials
secretName: git-credentials-basic
- apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
Expand Down Expand Up @@ -162,9 +162,9 @@ spec:
- name: mac-ssh-credentials
secret:
secretName: mac-ssh-credentials
- name: git-credentials # need to fetch some private repositories.
- name: git-basic-auth # need to fetch some private repositories.
secret:
secretName: git-credentials
secretName: git-credentials-basic
- name: source
volumeClaimTemplate:
spec:
Expand Down Expand Up @@ -215,9 +215,9 @@ spec:
resources:
requests:
storage: 10Gi
- name: git-credentials # need to fetch some private repositories.
- name: git-basic-auth # need to fetch some private repositories.
secret:
secretName: git-credentials
secretName: git-credentials-basic
timeouts:
pipeline: 1h
taskRunSpecs:
Expand Down

0 comments on commit 6fa83d0

Please sign in to comment.