-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathqotd-pipeline-with-trigger.yaml
48 lines (48 loc) · 1.14 KB
/
qotd-pipeline-with-trigger.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
44
45
46
47
48
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: qotd-build-and-deploy
spec:
params:
- name: qotd-git
description: URL of git repository containing source code to be built
- name: qotd-image
description: URL of container image to be built, i.e. output path
workspaces:
- name: output
description: |
This workspace will receive the cloned git repo and be passed
to the next Task
tasks:
- name: clone-repo
taskRef:
name: git-clone
params:
- name: url
value: $(params.qotd-git)
workspaces:
- name: output
workspace: output
- name: image-build
taskRef:
name: buildah
params:
- name: IMAGE
value: $(params.qotd-image)
- name: TLSVERIFY
value: "false"
- name: CONTEXT
value: "."
workspaces:
- name: source
workspace: output
runAfter:
- clone-repo
- name: apply-manifests
taskRef:
name: apply-manifests-for-triggers
workspaces:
- name: source
workspace: output
runAfter:
- image-build