Last active
March 24, 2020 06:59
-
-
Save ahpook/33ead51d448bc2a8c16d46435500b06a to your computer and use it in GitHub Desktop.
Conditional pipelinerun - condition definition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: tekton.dev/v1alpha1 | |
kind: Condition | |
metadata: | |
name: file-exists | |
spec: | |
params: | |
- name: "path" | |
resources: | |
- name: workspace | |
type: git | |
check: | |
image: alpine | |
script: 'test -f $(resources.workspace.path)/$(params.path)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment