this stuff doesn't quite work
This commit is contained in:
43
_CI-CD/tektoncd-kaniko-pipeline.yaml
Normal file
43
_CI-CD/tektoncd-kaniko-pipeline.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
apiVersion: tekton.dev/v1beta1
|
||||
kind: Pipeline
|
||||
metadata:
|
||||
name: kaniko-pipeline
|
||||
spec:
|
||||
params:
|
||||
- name: git-url
|
||||
- name: git-revision
|
||||
- name: image-name
|
||||
- name: path-to-image-context
|
||||
- name: path-to-dockerfile
|
||||
workspaces:
|
||||
- name: git-source
|
||||
tasks:
|
||||
- name: fetch-from-git
|
||||
taskRef:
|
||||
name: git-clone
|
||||
params:
|
||||
- name: url
|
||||
value: $(params.git-url)
|
||||
- name: revision
|
||||
value: $(params.git-revision)
|
||||
- name: submodules
|
||||
value: '0'
|
||||
workspaces:
|
||||
- name: output
|
||||
workspace: git-source
|
||||
- name: build-image
|
||||
taskRef:
|
||||
name: kaniko
|
||||
params:
|
||||
- name: IMAGE
|
||||
value: $(params.image-name)
|
||||
- name: CONTEXT
|
||||
value: $(params.path-to-image-context)
|
||||
- name: DOCKERFILE
|
||||
value: $(params.path-to-dockerfile)
|
||||
workspaces:
|
||||
- name: source
|
||||
workspace: git-source
|
||||
# If you want you can add a Task that uses the IMAGE_DIGEST from the kaniko task
|
||||
# via $(tasks.build-image.results.IMAGE_DIGEST) - this was a feature we hadn't been
|
||||
# able to fully deliver with the Image PipelineResource!
|
||||
Reference in New Issue
Block a user