Skip to content

Commit

Permalink
Updated git-clone task
Browse files Browse the repository at this point in the history
  • Loading branch information
matejvasek committed Aug 27, 2024
1 parent 8f7dd2c commit 20bd907
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pkg/pipelines/tekton/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
default: "1001"
- name: GROUP_ID
description: The group ID of the builder image user.
default: "0"
default: "65532"
##############################################################
##### "default" has been changed to "0" for Knative Functions
- name: PLATFORM_DIR
Expand Down Expand Up @@ -108,6 +108,8 @@ spec:
fi
done
chmod -R g+w "$(workspaces.source.path)"
echo "> Parsing additional configuration..."
parsing_flag=""
envs=()
Expand Down Expand Up @@ -187,7 +189,7 @@ spec:
runAsUser: 1001
#################################################################
##### "runAsGroup" has been changed to "0" for Knative Functions
runAsGroup: 0
runAsGroup: 65532
- name: results
image: docker.io/library/bash:5.1.4@sha256:b208215a4655538be652b2769d82e576bc4d0a2bb132144c060efc5be8c3f5d6
Expand Down
2 changes: 1 addition & 1 deletion pkg/pipelines/tekton/templates.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const (
- name: name
value: git-clone
- name: version
value: "0.4"
value: "0.9"
workspaces:
- name: output
workspace: source-workspace`
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipelines/tekton/templates_pack.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ metadata:
{{end}}
generateName: {{.PipelineRunName}}
spec:
podTemplate:
securityContext:
fsGroup: 65532
params:
- name: gitRepository
value: {{.RepoUrl}}
Expand Down
3 changes: 3 additions & 0 deletions pkg/pipelines/tekton/templates_s2i.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ metadata:
{{end}}
generateName: {{.PipelineRunName}}
spec:
podTemplate:
securityContext:
fsGroup: 65532
params:
- name: gitRepository
value: {{.RepoUrl}}
Expand Down

0 comments on commit 20bd907

Please sign in to comment.