-
Notifications
You must be signed in to change notification settings - Fork 2
/
parallel-deploy.yaml
70 lines (70 loc) · 1.54 KB
/
parallel-deploy.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# ###
# This example shows how to deploy multiple Orka VMs in a Pipeline.
# In this scenario, the VMs will be run in parallel and run two different jobs.
#
# The orka-init and orka-teardown Tasks require a Kubernetes service account with
# permission to create / delete secrets and config maps. See the README for more
# information.
# ###
---
apiVersion: tekton.dev/v1beta1
kind: Pipeline
metadata:
name: parallel-deploy
spec:
workspaces:
- name: shared-data
tasks:
- name: setup
taskRef:
name: orka-init
params:
- name: base-image
value: 90GBigSurSSH.img
- name: diskinfo
runAfter:
- setup
retries: 1
taskRef:
name: orka-deploy
params:
- name: copy-build
value: "false"
- name: script
value: |
diskutil info /
workspaces:
- name: orka
workspace: shared-data
- name: ruby
runAfter:
- setup
retries: 1
taskRef:
name: orka-deploy
params:
- name: copy-build
value: "false"
- name: script
value: |
#!/usr/bin/env ruby
puts "Hello macOS"
workspaces:
- name: orka
workspace: shared-data
finally:
- name: cleanup
taskRef:
name: orka-teardown
---
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: run-parallel-deploy
spec:
serviceAccountName: orka-svc
pipelineRef:
name: parallel-deploy
workspaces:
- name: shared-data
emptyDir: {}