Compare commits
3 Commits
b5ff289f66
...
273fb0e252
| Author | SHA1 | Date | |
|---|---|---|---|
| 273fb0e252 | |||
| 62f5788742 | |||
| 9b2d2a9d95 |
@@ -13,7 +13,7 @@ spec:
|
||||
- name: path-to-image-context
|
||||
value: _CI-CD/debian-stable-php-fpm
|
||||
- name: path-to-dockerfile
|
||||
value: ./Dockerfile
|
||||
value: _CI-CD/debian-stable-php-fpm/Dockerfile
|
||||
- name: image-name
|
||||
value: cr.lan/debian-stable-php-fpm
|
||||
workspaces:
|
||||
|
||||
@@ -22,8 +22,10 @@ spec:
|
||||
value: $(params.git-revision)
|
||||
- name: submodules
|
||||
value: false
|
||||
- subdirectory:
|
||||
value: "source"
|
||||
workspaces:
|
||||
- name: output
|
||||
- name: source
|
||||
workspace: git-source
|
||||
- name: build-image
|
||||
taskRef:
|
||||
|
||||
@@ -52,7 +52,7 @@ spec:
|
||||
image: $(params.BUILDER_IMAGE)
|
||||
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.
|
||||
- --destination=$(params.IMAGE)
|
||||
- --digest-file=/tekton/results/IMAGE-DIGEST
|
||||
@@ -60,6 +60,7 @@ spec:
|
||||
- --single-snapshot
|
||||
- --use-new-run
|
||||
- --skip-tls-verify
|
||||
- --cache-dir /workspace/cache
|
||||
# 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
|
||||
# makes it explicit that it needs to run as root.
|
||||
|
||||
Reference in New Issue
Block a user