1
0
mirror of https://github.com/tektoncd/catalog.git synced 2025-01-22 13:14:20 +00:00
catalog/kn/kn.yaml

26 lines
667 B
YAML
Raw Normal View History

apiVersion: tekton.dev/v1alpha1
kind: Task
metadata:
name: kn
spec:
inputs:
params:
- name: kn-image
description: kn CLI container image to run this task
default: gcr.io/knative-releases/knative.dev/client/cmd/kn:latest
- name: ARGS
type: array
description: kn CLI arguments to run
default:
- "help"
resources:
- name: image
type: image
steps:
- name: kn
image: "$(inputs.params.kn-image)"
command: ["/ko-app/kn"]
args: ["$(inputs.params.ARGS)"]
# reference the container image resource in your taskrun/pipelinerun
# parameters array as "--image=$(inputs.resources.image.url)"