This repository has been archived by the owner on Nov 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 93
/
.taskcluster.yml
209 lines (203 loc) · 8.77 KB
/
.taskcluster.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
207
208
209
version: 0
allowPullRequests: public
metadata:
name: "Mozilla Release Services"
description: "Mozilla Release Services"
owner: "{{ event.head.user.email }}"
source: "{{ event.head.repo.url }}"
tasks:
- metadata:
name: "0. Decision task (pull request)"
description: "A task that detects changes and rebuilds application that needs to be rebuilt."
owner: "{{ event.head.user.email }}"
source: "https://github.com/mozilla/release-services/tree/master"
routes:
- index.project.releng.services.requests.pull-request.{{ event.head.sha }}
scopes:
- docker-worker:capability:privileged
- queue:create-task:highest:aws-provisioner-v1/releng-svc*
- queue:route:index.project.releng.services.requests.pull-request.*
- queue:scheduler-id:taskcluster-github
- secrets:get:repo:github.com/mozilla-releng/services:pull-request
extra:
github:
env: true
events:
- pull_request.*
excludeBranches:
- production
- staging
- testing
provisionerId: "aws-provisioner-v1"
workerType: "releng-svc"
priority: high
payload:
maxRunTime: 1800 # 30min
image: "mozillareleng/services:base-61"
features:
taskclusterProxy: true
capabilities:
privileged: true
command:
- "/bin/bash"
- "-l"
- "-c"
- "source /etc/nix/profile.sh && cd /tmp && wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 5 https://github.com/mozilla/release-services/archive/$GITHUB_HEAD_SHA.tar.gz && tar zxf $GITHUB_HEAD_SHA.tar.gz && cd release-services-$GITHUB_HEAD_SHA && env && rm -rf /home/app/.cache/nix && ./please tools decision-task"
- metadata:
name: "0. Decision task (master)"
description: "A task that detects changes and rebuilds application that needs to be rebuilt."
owner: "{{ event.head.user.email }}"
source: "https://github.com/mozilla/release-services/tree/master"
routes:
- index.project.releng.services.requests.{{ event.base.repo.branch }}.by-timestamp.{{ timestamp }}
- index.project.releng.services.requests.{{ event.base.repo.branch }}.by-revision.{{ event.head.sha }}
scopes:
- assume:hook-id:project-releng/services-master-*
- hooks:modify-hook:project-releng/services-master-*
- queue:create-task:highest:aws-provisioner-v1/releng-*
- queue:scheduler-id:taskcluster-github
- queue:route:index.project.releng.services.requests.{{ event.base.repo.branch }}.*
- secrets:get:repo:github.com/mozilla-releng/services:branch:master
- docker-worker:capability:privileged
extra:
github:
env: true
events:
- push
branches:
- master
provisionerId: "aws-provisioner-v1"
workerType: "releng-svc"
priority: high
payload:
maxRunTime: 1800 # 30min
image: "mozillareleng/services:base-61"
features:
taskclusterProxy: true
capabilities:
privileged: true
command:
- "/bin/bash"
- "-l"
- "-c"
- "source /etc/nix/profile.sh && cd /tmp && wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 5 https://github.com/mozilla/release-services/archive/$GITHUB_HEAD_SHA.tar.gz && tar zxf $GITHUB_HEAD_SHA.tar.gz && cd release-services-$GITHUB_HEAD_SHA && env && rm -rf /home/app/.cache/nix && ./please tools decision-task"
- metadata:
name: "0. Decision task (testing)"
description: "A task that detects changes and rebuilds application that needs to be rebuilt."
owner: "{{ event.head.user.email }}"
source: "https://github.com/mozilla/release-services/tree/testing"
routes:
- index.project.releng.services.requests.{{ event.base.repo.branch }}.by-timestamp.{{ timestamp }}
- index.project.releng.services.requests.{{ event.base.repo.branch }}.by-revision.{{ event.head.sha }}
scopes:
- assume:hook-id:project-releng/services-testing-*
- hooks:modify-hook:project-releng/services-testing-*
- queue:create-task:highest:aws-provisioner-v1/releng-*
- queue:scheduler-id:taskcluster-github
- queue:route:index.project.releng.services.requests.{{ event.base.repo.branch }}.*
- secrets:get:repo:github.com/mozilla-releng/services:branch:testing
- docker-worker:capability:privileged
- notify:irc-channel:#release-services
- notify:irc-channel:#ci
extra:
github:
env: true
events:
- push
branches:
- testing
provisionerId: "aws-provisioner-v1"
workerType: "releng-svc"
priority: high
payload:
maxRunTime: 1800 # 30min
image: "mozillareleng/services:base-61"
features:
taskclusterProxy: true
capabilities:
privileged: true
command:
- "/bin/bash"
- "-l"
- "-c"
- "source /etc/nix/profile.sh && cd /tmp && wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 5 https://github.com/mozilla/release-services/archive/$GITHUB_HEAD_SHA.tar.gz && tar zxf $GITHUB_HEAD_SHA.tar.gz && cd release-services-$GITHUB_HEAD_SHA && env && rm -rf /home/app/.cache/nix && ./please tools decision-task"
- metadata:
name: "0. Decision task (staging)"
description: "A task that detects changes and rebuilds application that needs to be rebuilt."
owner: "{{ event.head.user.email }}"
source: "https://github.com/mozilla/release-services/tree/staging"
routes:
- index.project.releng.services.requests.{{ event.base.repo.branch }}.by-timestamp.{{ timestamp }}
- index.project.releng.services.requests.{{ event.base.repo.branch }}.by-revision.{{ event.head.sha }}
scopes:
- assume:hook-id:project-releng/services-staging-*
- hooks:modify-hook:project-releng/services-staging-*
- queue:create-task:highest:aws-provisioner-v1/releng-*
- queue:scheduler-id:taskcluster-github
- queue:route:index.project.releng.services.requests.{{ event.base.repo.branch }}.*
- secrets:get:repo:github.com/mozilla-releng/services:branch:staging
- docker-worker:capability:privileged
- notify:irc-channel:#release-services
- notify:irc-channel:#ci
extra:
github:
env: true
events:
- push
branches:
- staging
provisionerId: "aws-provisioner-v1"
workerType: "releng-svc"
priority: high
payload:
maxRunTime: 1800 # 30min
image: "mozillareleng/services:base-61"
features:
taskclusterProxy: true
capabilities:
privileged: true
command:
- "/bin/bash"
- "-l"
- "-c"
- "source /etc/nix/profile.sh && cd /tmp && wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 5 https://github.com/mozilla/release-services/archive/$GITHUB_HEAD_SHA.tar.gz && tar zxf $GITHUB_HEAD_SHA.tar.gz && cd release-services-$GITHUB_HEAD_SHA && env && rm -rf /home/app/.cache/nix && ./please tools decision-task"
- metadata:
name: "0. Decision task (production)"
description: "A task that detects changes and rebuilds application that needs to be rebuilt."
owner: "{{ event.head.user.email }}"
source: "https://github.com/mozilla/release-services/tree/production"
routes:
- index.project.releng.services.requests.{{ event.base.repo.branch }}.by-timestamp.{{ timestamp }}
- index.project.releng.services.requests.{{ event.base.repo.branch }}.by-revision.{{ event.head.sha }}
scopes:
- assume:hook-id:project-releng/services-production-*
- hooks:modify-hook:project-releng/services-production-*
- queue:create-task:highest:aws-provisioner-v1/releng-*
- queue:scheduler-id:taskcluster-github
- queue:route:index.project.releng.services.requests.{{ event.base.repo.branch }}.*
- secrets:get:repo:github.com/mozilla-releng/services:branch:production
- docker-worker:capability:privileged
- notify:irc-channel:#release-services
- notify:irc-channel:#ci
extra:
github:
env: true
events:
- push
branches:
- production
provisionerId: "aws-provisioner-v1"
workerType: "releng-svc"
priority: high
payload:
maxRunTime: 1800 # 30min
image: "mozillareleng/services:base-61"
features:
taskclusterProxy: true
capabilities:
privileged: true
command:
- "/bin/bash"
- "-l"
- "-c"
- "source /etc/nix/profile.sh && cd /tmp && wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 5 https://github.com/mozilla/release-services/archive/$GITHUB_HEAD_SHA.tar.gz && tar zxf $GITHUB_HEAD_SHA.tar.gz && cd release-services-$GITHUB_HEAD_SHA && env && rm -rf /home/app/.cache/nix && ./please tools decision-task"