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:
parent
e375226c71
commit
e3a8044d49
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user