more updates
This commit is contained in:
@@ -22,6 +22,8 @@ spec:
|
|||||||
value: $(params.git-revision)
|
value: $(params.git-revision)
|
||||||
- name: submodules
|
- name: submodules
|
||||||
value: false
|
value: false
|
||||||
|
- subdirectory:
|
||||||
|
value: "source"
|
||||||
workspaces:
|
workspaces:
|
||||||
- name: source
|
- name: source
|
||||||
workspace: git-source
|
workspace: git-source
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ spec:
|
|||||||
image: $(params.BUILDER_IMAGE)
|
image: $(params.BUILDER_IMAGE)
|
||||||
args:
|
args:
|
||||||
- $(params.EXTRA_ARGS[*])
|
- $(params.EXTRA_ARGS[*])
|
||||||
- --dockerfile=$(workspaces.source.path)/$(params.DOCKERFILE)
|
- --dockerfile=$(params.DOCKERFILE)
|
||||||
- --context=$(params.CONTEXT) # The user does not need to care the workspace and the source.
|
- --context=$(params.CONTEXT) # The user does not need to care the workspace and the source.
|
||||||
- --destination=$(params.IMAGE)
|
- --destination=$(params.IMAGE)
|
||||||
- --digest-file=/tekton/results/IMAGE-DIGEST
|
- --digest-file=/tekton/results/IMAGE-DIGEST
|
||||||
@@ -60,6 +60,7 @@ spec:
|
|||||||
- --single-snapshot
|
- --single-snapshot
|
||||||
- --use-new-run
|
- --use-new-run
|
||||||
- --skip-tls-verify
|
- --skip-tls-verify
|
||||||
|
- --cache-dir /workspace/cache
|
||||||
# kaniko assumes it is running as root, which means this example fails on platforms
|
# kaniko assumes it is running as root, which means this example fails on platforms
|
||||||
# that default to run containers as random uid (like OpenShift). Adding this securityContext
|
# that default to run containers as random uid (like OpenShift). Adding this securityContext
|
||||||
# makes it explicit that it needs to run as root.
|
# makes it explicit that it needs to run as root.
|
||||||
|
|||||||
Reference in New Issue
Block a user