mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-27 06:27:23 +00:00
27 lines
625 B
YAML
27 lines
625 B
YAML
---
|
|
apiVersion: tekton.dev/v1beta1
|
|
kind: Task
|
|
metadata:
|
|
name: bentoml
|
|
spec:
|
|
params:
|
|
- name: ARGS
|
|
type: array
|
|
description: BentoML CLI arguments to run
|
|
- name: YATAISERVICE
|
|
type: string
|
|
description: BentoML CLI arguments to run
|
|
default: ""
|
|
steps:
|
|
- name: bento
|
|
image: iancoffey/bentoml-python3:latest
|
|
command: ["bentoml"]
|
|
args: ["$(inputs.params.ARGS)"]
|
|
env:
|
|
- name: "BENTOML__YATAI_SERVICE__URL"
|
|
value: "$(inputs.params.YATAISERVICE)"
|
|
workspaces:
|
|
- name: bentoml
|
|
description: The folder where bentoml will write state to
|
|
mountPath: /workspace/bentoml
|