2020-02-24 18:46:52 +00:00
|
|
|
---
|
2020-03-04 16:09:29 +00:00
|
|
|
apiVersion: tekton.dev/v1beta1
|
2020-03-10 15:45:29 +00:00
|
|
|
kind: Pipeline
|
2020-02-24 18:46:52 +00:00
|
|
|
metadata:
|
2020-03-10 15:45:29 +00:00
|
|
|
name: buildpacks-test-pipeline
|
2020-02-24 18:46:52 +00:00
|
|
|
spec:
|
2020-03-10 15:45:29 +00:00
|
|
|
workspaces:
|
|
|
|
- name: shared-workspace
|
|
|
|
resources:
|
|
|
|
- name: build-image
|
|
|
|
type: image
|
|
|
|
tasks:
|
|
|
|
- name: fetch-repository
|
|
|
|
taskRef:
|
|
|
|
name: git-clone
|
|
|
|
workspaces:
|
|
|
|
- name: output
|
|
|
|
workspace: shared-workspace
|
|
|
|
params:
|
|
|
|
- name: url
|
|
|
|
value: https://github.com/buildpacks/samples
|
|
|
|
- name: subdirectory
|
|
|
|
value: ""
|
|
|
|
- name: deleteExisting
|
|
|
|
value: "true"
|
|
|
|
- name: buildpacks-v3
|
|
|
|
taskRef:
|
|
|
|
name: buildpacks-v3
|
|
|
|
runAfter:
|
|
|
|
- fetch-repository
|
|
|
|
workspaces:
|
|
|
|
- name: source
|
|
|
|
workspace: shared-workspace
|
|
|
|
params:
|
|
|
|
- name: SOURCE_SUBPATH
|
|
|
|
value: apps/java-maven
|
|
|
|
- name: BUILDER_IMAGE
|
2020-03-31 21:59:00 +00:00
|
|
|
value: cnbs/sample-builder:alpine-p0.3
|
2020-03-10 15:45:29 +00:00
|
|
|
- name: CACHE
|
|
|
|
value: buildpacks-cache
|
|
|
|
resources:
|
|
|
|
outputs:
|
|
|
|
- name: image
|
|
|
|
resource: build-image
|
|
|
|
---
|
|
|
|
apiVersion: tekton.dev/v1beta1
|
|
|
|
kind: PipelineRun
|
|
|
|
metadata:
|
|
|
|
name: buildpacks-test-pipeline-run
|
|
|
|
spec:
|
|
|
|
pipelineRef:
|
|
|
|
name: buildpacks-test-pipeline
|
|
|
|
workspaces:
|
|
|
|
- name: shared-workspace
|
|
|
|
persistentvolumeclaim:
|
|
|
|
claimName: buildpacks-source-pvc
|
|
|
|
resources:
|
|
|
|
- name: build-image
|
|
|
|
resourceRef:
|
|
|
|
name: buildpacks-app-image
|
2020-02-25 21:24:55 +00:00
|
|
|
podTemplate:
|
|
|
|
volumes:
|
|
|
|
- name: buildpacks-cache
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: buildpacks-cache-pvc
|