feat: deploy Tekton task supports optional `image` parameter (#1140)

* feat: deploy Tekton task supports optional `image` parameter

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>

* address feedback

Signed-off-by: Zbynek Roubalik <zroubalik@gmail.com>
This commit is contained in:
Zbynek Roubalik 2022-07-27 16:52:36 +02:00 committed by GitHub
parent e659256005
commit 65c30abb39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 8 deletions

View File

@ -16,17 +16,15 @@ spec:
- name: path
description: Path to the function project
default: ""
- name: image
description: Container image to be deployed
default: ""
workspaces:
- name: source
description: The workspace containing the function project
steps:
- name: func-deploy
image: "ghcr.io/knative-sandbox/kn-plugin-func/func:latest"
command: ["func"]
args:
- "deploy"
- "--verbose"
- "--build=disabled"
- "--push=false"
- "--path"
- "$(params.path)"
script: |
export FUNC_IMAGE="$(params.image)"
func deploy --verbose --build=disabled --push=false --path=$(params.path)