mirror of
https://github.com/bvanroll/stage-infra.git
synced 2025-08-29 20:12:46 +00:00
temp commit die ga falen
This commit is contained in:
21
Tekton/conditions/is-equal.yaml
Normal file
21
Tekton/conditions/is-equal.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
apiVersion: tekton.dev/v1alpha1
|
||||
kind: Condition
|
||||
metadata:
|
||||
name: is-equal
|
||||
spec:
|
||||
params:
|
||||
- name: left
|
||||
type: string
|
||||
- name: right
|
||||
type: string
|
||||
check:
|
||||
image: alpine
|
||||
script: |
|
||||
#!/bin/sh
|
||||
if [ $(params.left) = $(params.right) ]; then
|
||||
echo "$(params.left) == $(params.right)"
|
||||
exit 0
|
||||
else
|
||||
echo "$(params.left) != $(params.right)"
|
||||
exit 1
|
||||
fi
|
Reference in New Issue
Block a user