Files
stage-infra/Tekton/conditions/is-equal.yaml

22 lines
443 B
YAML

apiVersion: tekton.dev/v1alpha1
kind: Condition
metadata:
name: is-equal
namespace: tekton-pipeline-1
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