mirror of
https://github.com/tektoncd/catalog.git
synced 2025-01-06 10:26:42 +00:00
fa97c4d820
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
26 lines
667 B
YAML
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)"
|