1
0
mirror of https://github.com/tektoncd/catalog.git synced 2025-01-06 10:26:42 +00:00
catalog/kn/kn.yaml
Navid Shaikh fa97c4d820 Default kn image to the latest released version
Use `latest` tag for kn image at https://gcr.io/knative-releases/knative.dev/client/cmd/kn
 which points to the latest released version of kn.
 User can still parameterize the kn image to use, for example nightly build of kn image
 at https://gcr.io/knative-nightly/knative.dev/client/cmd/kn:latest
2020-02-24 05:28:42 -06:00

26 lines
667 B
YAML

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)"