Added tekton pipelines
This commit is contained in:
12
tekton/conditions/has-makefile.yaml
Normal file
12
tekton/conditions/has-makefile.yaml
Normal file
@@ -0,0 +1,12 @@
|
||||
apiVersion: tekton.dev/v1alpha1
|
||||
kind: Condition
|
||||
metadata:
|
||||
name: has-makefile
|
||||
namespace: tekton-pipelines
|
||||
spec:
|
||||
resources:
|
||||
- name: src
|
||||
type: git
|
||||
check:
|
||||
image: alpine
|
||||
script: 'test -f $(resources.src.path)/Makefile'
|
11
tekton/conditions/public-project.yaml
Normal file
11
tekton/conditions/public-project.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
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'
|
Reference in New Issue
Block a user