cluster.fun/tekton/conditions/public-project.yaml

24 lines
458 B
YAML

apiVersion: tekton.dev/v1alpha1
kind: Condition
metadata:
name: is-public-project
namespace: tekton-pipelines
spec:
params:
- name: isprivate
check:
image: alpine
script: 'test $(params.isprivate) == false'
---
apiVersion: tekton.dev/v1alpha1
kind: Condition
metadata:
name: is-private-project
namespace: tekton-pipelines
spec:
params:
- name: isprivate
check:
image: alpine
script: 'test $(params.isprivate) == true'