mirror of
https://github.com/tektoncd/catalog.git
synced 2024-12-11 07:50:29 +00:00
f7c13a18dc
This migrate conftest to use `workspace` instead of an input `GitResource`. Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
32 lines
546 B
YAML
32 lines
546 B
YAML
apiVersion: tekton.dev/v1beta1
|
|
kind: Task
|
|
metadata:
|
|
name: conftest
|
|
spec:
|
|
workspaces:
|
|
- name: source
|
|
params:
|
|
- name: files
|
|
type: string
|
|
- name: policy
|
|
default: "policy"
|
|
- name: output
|
|
default: "stdout"
|
|
- name: args
|
|
type: array
|
|
default: []
|
|
|
|
steps:
|
|
- name: conftest
|
|
workingDir: $(workspaces.source.path)
|
|
image: instrumenta/conftest:latest
|
|
command:
|
|
- conftest
|
|
- test
|
|
- $(params.files)
|
|
- -p
|
|
- $(params.policy)
|
|
- -o
|
|
- $(params.output)
|
|
- $(params.args)
|