Skip to content

Instantly share code, notes, and snippets.

@ahpook
Last active March 24, 2020 06:59
Show Gist options
  • Save ahpook/33ead51d448bc2a8c16d46435500b06a to your computer and use it in GitHub Desktop.
Save ahpook/33ead51d448bc2a8c16d46435500b06a to your computer and use it in GitHub Desktop.
Conditional pipelinerun - condition definition
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