apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: imageformater spec: description: transform image name to standart name params: - name: image - name: tag results: - name: imagetag steps: - name: exec image: alpine command: - /bin/sh args: - '-c' - | #set -e echo "" echo "== IMAGE NAME FORMATER ===================================" echo "IMAGE TAG BEFORE = $(params.image):$(params.tag)" temp="$(params.image):$(params.tag)" lowercase=$(echo "$temp" | awk '{print tolower($0)}') echo "IMAGE TAG AFTER = ${lowercase}" echo -n "${lowercase}" > "$(results.imagetag.path)" echo "" echo ""