-
Notifications
You must be signed in to change notification settings - Fork 0
/
pipeline.yaml
43 lines (43 loc) · 968 Bytes
/
pipeline.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: clone-build-push
namespace: dev
spec:
description: |
This pipeline clones a git repo, builds a Container image with Kaniko and pushes it to a registry
params:
- name: repo-url
type: string
- name: image-reference
type: string
- name: dockerfile-path
type: string
workspaces:
- name: shared-data
- name: quay-credentials
tasks:
- name: git-clone
taskRef:
name: git-clone
workspaces:
- name: output
workspace: shared-data
params:
- name: url
value: $(params.repo-url)
- name: build-push
runAfter: ["git-clone"]
taskRef:
name: kaniko
workspaces:
- name: source
workspace: shared-data
subPath: sample-app/
- name: dockerconfig
workspace: quay-credentials
params:
- name: IMAGE
value: $(params.image-reference)
- name: DOCKERFILE
value: $(params.dockerfile-path)