-
Notifications
You must be signed in to change notification settings - Fork 31
/
codeship-steps.yml
206 lines (206 loc) · 4.94 KB
/
codeship-steps.yml
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
- type: serial
name: 01
steps:
- service: 01demodockerfile
command: ruby --version
- service: 01demohub
command: ruby --version
- service: 01demodockerfiledockercompose
command: ls /app
- type: serial
name: 02
steps:
- service: 02demo
command: bundle exec ruby check.rb
- type: serial
name: 03
steps:
- name: 03ruby
service: 03demo
command: bundle exec ruby check.rb
- type: parallel
name: 04
steps:
- service: 04demo
command: sleep 2
- type: serial
steps:
- service: 04demo
command: echo Before
- type: parallel
steps:
- service: 04demo
command: echo In Between
- service: 04demo
command: sleep 3
- service: 04demo
command: echo After
- type: matrix
name: 05
services:
- 05demo1
- 05demo2
steps:
- command: env
- type: matrix
name: 06
services:
- 05demo1
- 05demo2
steps:
- type: parallel
steps:
- command: sleep 4
- command: sleep 2
- type: serial
steps:
- command: sleep 3
- command: env
- type: serial
name: 07
steps:
- service: 07write
command: bash write_artifact.sh
- service: 07read
command: cat /artifacts/foo
- type: serial
name: 08
steps:
- service: 08compiledemo
name: create_artifact
command: "./write_artifact.sh"
- service: 08deploy
name: use_artifact
command: cat /data/date
- service: 08builder
name: build_image
command: "./build_with_docker.sh"
- service: 08app1
name: build_with_artifact_via_container
command: cat /app/date
- service: 08app2
name: build_with_artifact_local
command: cat /app/date
- service: busybox
name: 09
tag: master
command: echo "SHOULD ONLY RUN ON MASTER"
- type: parallel
name: 10
steps:
- service: busybox
command: echo 1
- service: busybox
command: echo 2
- service: busybox
command: echo 3
- service: busybox
command: echo 4
- service: busybox
command: echo 5
- service: busybox
command: echo 6
- service: busybox
command: echo 7
- service: busybox
command: echo 8
- service: busybox
command: echo 9
- service: busybox
command: echo 10
- service: busybox
command: echo 11
- service: busybox
command: echo 12
- service: busybox
command: echo 13
- service: busybox
command: echo 14
- service: busybox
command: echo 15
- service: busybox
command: echo 16
- service: busybox
command: echo 17
- service: busybox
command: echo 18
- service: busybox
command: echo 19
- service: busybox
command: echo 20
- service: busybox
command: echo 21
- service: busybox
command: echo 22
- service: busybox
command: echo 23
- service: busybox
command: echo 24
- service: busybox
command: echo 25
- service: 11busybox
name: 11
command: ./check_for_foo.sh
- service: adddocker
name: 14
command: docker run busybox echo hello
- type: serial
name: 15
steps:
- type: parallel
service: 15app
steps:
- command: bash /app/compute.sh /app/files/1 /data
- command: bash /app/compute.sh /app/files/2 /data
- command: bash /app/compute.sh /app/files/3 /data
- command: bash /app/compute.sh /app/files/4 /data
- command: bash /app/compute.sh /app/files/5 /data
- command: bash /app/compute.sh /app/files/6 /data
- command: bash /app/compute.sh /app/files/7 /data
- command: bash /app/compute.sh /app/files/8 /data
- command: bash /app/compute.sh /app/files/9 /data
- command: bash /app/compute.sh /app/files/10 /data
- command: bash /app/compute.sh /app/files/11 /data
- command: bash /app/compute.sh /app/files/12 /data
- command: bash /app/compute.sh /app/files/13 /data
- command: bash /app/compute.sh /app/files/14 /data
- command: bash /app/compute.sh /app/files/15 /data
- command: bash /app/compute.sh /app/files/16 /data
- command: bash /app/compute.sh /app/files/17 /data
- command: bash /app/compute.sh /app/files/18 /data
- command: bash /app/compute.sh /app/files/19 /data
- command: bash /app/compute.sh /app/files/20 /data
- service: 15app
command: bash /app/print.sh /data
- type: push
name: 16
service: 16demo
image_name: quay.io/codeship/codeship-tool-examples
registry: quay.io
image_tag: push_demo
encrypted_dockercfg_path: dockercfg.encrypted
- name: 18
service: 18test
command: ./ab-with-backoff.sh
- name: 19
service: 19demo
type: push
image_name: quay.io/codeship/codeship-tool-examples
image_tag: dockercfg_service_test
registry: quay.io
dockercfg_service: 19dockercfg_generator
- name: 20
service: 20buildargs
command: /app/test-build-arg.sh
- name: 21
service: 21entrypoint
command: "-o pid"
- name: 22
service: 22workingdir
command: ./script.sh
- name: 23
service: 23dependson
command: ./wait.sh
- name: 24
service: 24healthchecks
command: curl -sL 24elasticsearch:9200