-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathqotd-pipeline.yaml
54 lines (54 loc) · 1.25 KB
/
qotd-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
44
45
46
47
48
49
50
51
52
53
54
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: qotd-build-and-deploy
labels:
sandbox: learn-pipelines
learn-pipelines: pipeline
spec:
workspaces:
- name: shared-workspace
params:
- name: git-url
type: string
description: url of the git repo for the code of deployment
default: https://github.com/redhat-developer-demos/qotd.git
- name: IMAGE
type: string
description: image to be built from the code
default: image-registry.openshift-image-registry.svc:5000/pipelines-tutorial/qotd:latest
tasks:
- name: fetch-repository
taskRef:
name: git-clone
workspaces:
- name: output
workspace: shared-workspace
params:
- name: url
value: $(params.git-url)
- name: subdirectory
value: ""
- name: deleteExisting
value: "true"
- name: build-image
taskRef:
name: buildah
params:
- name: TLSVERIFY
value: "false"
- name: IMAGE
value: $(params.IMAGE)
workspaces:
- name: source
workspace: shared-workspace
runAfter:
- fetch-repository
- name: apply-manifests
taskRef:
name: apply-manifests
workspaces:
- name: source
workspace: shared-workspace
runAfter:
- build-image