Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit 78903c5

Browse files
committed
Kaniko runtime added
1 parent 311992e commit 78903c5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

kaniko/runtime.yaml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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)

0 commit comments

Comments
 (0)