mirror of
https://github.com/bvanroll/stage-infra.git
synced 2025-08-29 03:52:49 +00:00
21 lines
412 B
YAML
21 lines
412 B
YAML
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 |