mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-24 06:15:46 +00:00
Add security context in create step of buildpacks
Signed-off-by: vinamra28 <vinjain@redhat.com>
This commit is contained in:
parent
84a5a1d982
commit
11a17cfe87
@ -35,7 +35,7 @@ spec:
|
||||
- name: SOURCE_SUBPATH
|
||||
value: apps/java-maven
|
||||
- name: BUILDER_IMAGE
|
||||
value: cnbs/sample-builder:alpine-p0.3
|
||||
value: cnbs/sample-builder:alpine-p0.3@sha256:37a46f94c6b1d2dca907542e11191885adcd365e7b0c176ec19e2969880ebb61
|
||||
- name: CACHE
|
||||
value: buildpacks-cache
|
||||
resources:
|
||||
|
@ -8,6 +8,7 @@ metadata:
|
||||
annotations:
|
||||
tekton.dev/pipelines.minVersion: "0.12.1"
|
||||
tekton.dev/tags: image-build
|
||||
tekton.dev/deprecated: "true"
|
||||
tekton.dev/displayName: "buildpacks"
|
||||
spec:
|
||||
description: >-
|
||||
|
@ -106,6 +106,9 @@ spec:
|
||||
mountPath: /cache
|
||||
- name: $(params.PLATFORM_DIR)
|
||||
mountPath: /platform
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
|
||||
volumes:
|
||||
- name: empty-dir
|
||||
|
@ -35,7 +35,7 @@ spec:
|
||||
- name: SOURCE_SUBPATH
|
||||
value: apps/java-maven
|
||||
- name: BUILDER_IMAGE
|
||||
value: cnbs/sample-builder:alpine
|
||||
value: cnbs/sample-builder:alpine@sha256:329dd975bed06758c891d29014b98a3baaf381afb36d7375c3140bfbbb94fb08
|
||||
- name: CACHE
|
||||
value: buildpacks-cache
|
||||
resources:
|
||||
|
@ -135,6 +135,7 @@ function test_task_creation() {
|
||||
# remove /tests from end
|
||||
local taskdir=${runtest%/*}
|
||||
ls ${taskdir}/*.yaml 2>/dev/null >/dev/null || skipit=True
|
||||
cat ${taskdir}/*.yaml | grep 'tekton.dev/deprecated: \"true\"' && skipit=True
|
||||
|
||||
[[ -n ${skipit} ]] && continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user