Skip to content

Commit 632c127

Browse files
fix: git protocol (#1700)
Co-authored-by: Cas Lubbers <[email protected]>
1 parent ebf7635 commit 632c127

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

charts/otomi-pipelines/templates/tekton-otomi-git-clone.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ spec:
5454
export fullRepoUrl=$(params["repoUrl"])
5555
echo $fullRepoUrl
5656
57-
# Removing the proto part ('https://')
58-
export url=$(echo $fullRepoUrl|sed 's/https\:\/\///')
57+
# Removing the proto part ('http://')
58+
export url=$(echo $fullRepoUrl|sed 's/http\:\/\///')
5959
6060
# Cloning the values
6161
{{- if .Values.cloneUnsecure }}

charts/otomi-pipelines/templates/tekton-otomi-task-teams.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ spec:
5353
5454
# Parsing the repo url
5555
export fullRepoUrl=$(params["repoUrl"])
56-
export url=$(echo $fullRepoUrl|sed 's/https\:\/\///')
56+
export url=$(echo $fullRepoUrl|sed 's/http\:\/\///')
5757
5858
# Cloning the values
5959
{{- if .Values.cloneUnsecure }}
6060
git clone -c http.sslVerify=false --depth 1 http://$GITEA_USERNAME:$GITEA_PASSWORD@$url $ENV_DIR
6161
{{- else}}
62-
git clone --depth 1 https://$GITEA_USERNAME:$GITEA_PASSWORD@$url $ENV_DIR
62+
git clone --depth 1 http://$GITEA_USERNAME:$GITEA_PASSWORD@$url $ENV_DIR
6363
{{- end }}
6464
- name: test
6565
computeResources: {}

charts/otomi-pipelines/templates/tekton-otomi-task.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ spec:
5353
5454
# Parsing the repo url
5555
export fullRepoUrl=$(params["repoUrl"])
56-
export url=$(echo $fullRepoUrl|sed 's/https\:\/\///')
56+
export url=$(echo $fullRepoUrl|sed 's/http\:\/\///')
5757
5858
# Cloning the values
5959
{{- if .Values.cloneUnsecure }}
6060
git clone -c http.sslVerify=false --depth 1 http://$GITEA_USERNAME:$GITEA_PASSWORD@$url $ENV_DIR
6161
{{- else}}
62-
git clone --depth 1 https://$GITEA_USERNAME:$GITEA_PASSWORD@$url $ENV_DIR
62+
git clone --depth 1 http://$GITEA_USERNAME:$GITEA_PASSWORD@$url $ENV_DIR
6363
{{- end }}
6464
- name: bootstrap
6565
computeResources: {}

0 commit comments

Comments
 (0)