mirror of https://github.com/knative/func.git
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:
parent
e659256005
commit
65c30abb39
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue