apiVersion: tekton.dev/v1beta1 kind: Task metadata: name: imageformater spec: description: transform image name to standart name workspaces: - name: source params: - name: revision results: - name: imagetag steps: - name: exec image: alpine:3.19 script: | #!/usr/bin/env sh set -eu set +x apk add make curl bash git cd $(workspaces.source.path) git config --global --add safe.directory /workspace/source git checkout $(params.revision) set -x echo "" echo "== IMAGE NAME FORMATER ===================================" make .mktools version=$(make mkt-project-version) echo -n "${version}" > "$(results.imagetag.path)" echo "" echo ""