1
0
mirror of https://github.com/tektoncd/catalog.git synced 2024-12-11 07:50:29 +00:00
catalog/conftest/conftest.yaml
Vincent Demeester f7c13a18dc conftest: use workspace instead of GitResource 🐐
This migrate conftest to use `workspace` instead of an input
`GitResource`.

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
2020-03-11 07:43:48 -05:00

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)