1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-11-21 05:55:35 +00:00

builtkit: use workspace instead of GitResource 🐐

This migrate buildkit to use `workspace` instead of an input
`GitResource`.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
This commit is contained in:
Vincent Demeester 2020-03-11 09:46:58 +01:00 committed by tekton-robot
parent e375226c71
commit e3a8044d49
2 changed files with 6 additions and 7 deletions

View File

@ -61,12 +61,12 @@ task.tekton.dev/buildkit created
* **BUILDKIT_CLIENT_CERTS**: The name of Secret that contains `ca.pem`, `cert.pem`, `key.pem`
for mTLS connection to BuildKit daemon (_default:_`buildkit-client-certs`)
## Resources
### Inputs
## Workspaces
* **source**: A `git`-type `PipelineResource` specifying the location of the source to build.
## Resources
### Outputs
* **image**: An `image`-type `PipelineResource` specifying the image that should be built.

View File

@ -18,10 +18,9 @@ spec:
- name: BUILDKIT_CLIENT_CERTS
description: The name of Secret that contains ca.pem, cert.pem, key.pem for mTLS connection to BuildKit daemon
default: "buildkit-client-certs"
workspaces:
- name: source
resources:
inputs:
- name: source
type: git
outputs:
- name: image
type: image
@ -32,7 +31,7 @@ spec:
steps:
- name: build-and-push
image: $(params.BUILDKIT_CLIENT_IMAGE)
workingDir: /workspace/source
workingDir: $(workspaces.source.path)
volumeMounts:
- name: certs
readOnly: true