this stuff doesn't quite work

This commit is contained in:
2022-02-01 22:38:32 +01:00
parent 27724423fb
commit b42e651e03
5 changed files with 140 additions and 4 deletions

View File

@@ -61,14 +61,20 @@ spec:
apiVersion: tekton.dev/v1beta1
kind: TaskRun
metadata:
name: img-rompr-taskrun
name: img-rompr-taskrun2
spec:
#serviceAccountName: dockerhub-service
taskRef:
name: build-rompr
name: kaniko
params:
- name: pathToDockerFile
- name: DOCKERFILE
value: Dockerfile
- name: CONTEXT
value: apps/rompr
- name: IMAGE
value: cr.lan/rompr
- name: BUILDER_IMAGE
value: gcr.io/kaniko-project/executor:latest
resources:
inputs:
- name: source
@@ -77,6 +83,6 @@ spec:
outputs:
- name: builtImage
resourceRef:
name: img-rompr
name: img-rompr

View File

@@ -0,0 +1,23 @@
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: build-rompr
spec:
pipelineRef:
name: kaniko-pipeline
params:
- name: git-url
value: http://git-ui.lan/chaos/kubernetes.git
- name: git-revision
value: master
- name: path-to-image-context
value: /apps/rompr
- name: path-to-dockerfile
value: /apps/rompr/Dockerfile
- name: image-name
value: cr.lan/rompr
workspaces:
- name: git-source
persistentVolumeClaim:
claimName: tektoncd-workspaces
subPath: usr_src/tekton-kaniko-pipelines