This repository was archived by the owner on Dec 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ apiVersion : tekton.dev/v1alpha1
2+ kind : Task
3+ metadata :
4+ name : kaniko
5+ spec :
6+ params :
7+ - name : IMAGE
8+ description : The URI of the image to push, including registry host
9+ default : " "
10+ - name : DIRECTORY
11+ description : The subdirectory of the workspace/repo
12+ default : " "
13+ - name : DOCKERFILE
14+ description : File name to build docker image
15+ default : Dockerfile
16+ resources :
17+ inputs :
18+ - name : sources
19+ targetPath : /workspace
20+ type : git
21+ steps :
22+ - name : build-and-push
23+ image : gcr.io/kaniko-project/executor:v0.8.0
24+ args :
25+ - --context=/workspace/workspace/$(inputs.params.DIRECTORY)
26+ - --dockerfile=/workspace/workspace/$(inputs.params.DIRECTORY)/$(inputs.params.DOCKERFILE)
27+ - --destination=$(inputs.params.IMAGE)
You can’t perform that action at this time.
0 commit comments