mirror of https://github.com/knative/func.git
				
				
				
			
		
			
				
	
	
		
			30 lines
		
	
	
		
			789 B
		
	
	
	
		
			YAML
		
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			789 B
		
	
	
	
		
			YAML
		
	
	
	
apiVersion: tekton.dev/v1
 | 
						|
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: "ghcr.io/knative/func-utils:latest"
 | 
						|
      script: |
 | 
						|
        deploy $(params.path) "$(params.image)"        
 |