Skip to content

Commit

Permalink
add func-deploy-pac.yaml task file to serverless-1.32 (#748)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrangelramos authored Mar 6, 2024
1 parent 3bd596f commit 202d9d1
Showing 1 changed file with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: tekton.dev/v1beta1
kind: Task
metadata:
name: func-deploy
labels:
app.kubernetes.io/version: "0.1"
annotations:
tekton.dev/pipelines.minVersion: "0.12.1"
tekton.dev/categories: CLI
tekton.dev/tags: cli
tekton.dev/platforms: "linux/amd64"
spec:
description: >-
This Task performs a deploy operation using the Knative `func` CLI
params:
- 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: "registry.redhat.io/openshift-serverless-1/client-kn-rhel8@sha256:aa63566b385616dfd3518aeb26ce192a3374c389a8ce60406289270b59c215f8"
env:
- name: FUNC_IMAGE
value: "$(params.image)"
- name: HOME
value: "/tmp"
command:
- /ko-app/kn
args:
- func
- deploy
- --verbose
- --build=false
- --push=false
- --path=$(params.path)
- --remote=false

0 comments on commit 202d9d1

Please sign in to comment.