forked from mozilla/release-services
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.taskcluster.yml
148 lines (143 loc) · 6.74 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
version: 0
allowPullRequests: public
metadata:
name: "Mozilla RelEng"
description: "Mozilla Release Engineering Services"
owner: "{{ event.head.user.email }}"
source: "{{ event.head.repo.url }}"
tasks:
- metadata:
name: "0. Decision task"
description: "A task that detects changes and rebuilds application that needs to be rebuilt."
owner: "{{ event.head.user.email }}"
source: "https://github.com/mozilla-releng/services/tree/master"
routes:
- index.project.releng.services.requests.pull-request.{{ 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.pull-request.*
- secrets:get:repo:github.com/mozilla-releng/services:branch:master
extra:
github:
env: true
events:
- pull_request.*
branches:
- master
provisionerId: "{{ taskcluster.docker.provisionerId }}"
workerType: "{{ taskcluster.docker.workerType }}"
priority: high
payload:
maxRunTime: 1800 # 30min
image: "mozillareleng/services@sha256:1835331e726eae803a7207989ed9c7db03e9fa98bab323df357fd27490576c39"
features:
taskclusterProxy: true
command:
- "/bin/bash"
- "-c"
- "cd /tmp && wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 5 https://github.com/mozilla-releng/services/archive/$GITHUB_HEAD_SHA.tar.gz && tar zxf $GITHUB_HEAD_SHA.tar.gz && cd services-$GITHUB_HEAD_SHA && env && rm -rf /home/app/.cache/nix && ./please -vv tools decision-task"
- metadata:
name: "0. Decision task"
description: "A task that detects changes and rebuilds application that needs to be rebuilt."
owner: "{{ event.head.user.email }}"
source: "https://github.com/mozilla-releng/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
extra:
github:
env: true
events:
- push
branches:
- master
provisionerId: "{{ taskcluster.docker.provisionerId }}"
workerType: "{{ taskcluster.docker.workerType }}"
priority: high
payload:
maxRunTime: 1800 # 30min
image: "mozillareleng/services@sha256:1835331e726eae803a7207989ed9c7db03e9fa98bab323df357fd27490576c39"
features:
taskclusterProxy: true
command:
- "/bin/bash"
- "-c"
- "cd /tmp && wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 5 https://github.com/mozilla-releng/services/archive/$GITHUB_HEAD_SHA.tar.gz && tar zxf $GITHUB_HEAD_SHA.tar.gz && cd services-$GITHUB_HEAD_SHA && env && rm -rf /home/app/.cache/nix && ./please -vv tools decision-task"
- metadata:
name: "0. Decision task"
description: "A task that detects changes and rebuilds application that needs to be rebuilt."
owner: "{{ event.head.user.email }}"
source: "https://github.com/mozilla-releng/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
extra:
github:
env: true
events:
- push
branches:
- staging
provisionerId: "{{ taskcluster.docker.provisionerId }}"
workerType: "{{ taskcluster.docker.workerType }}"
priority: high
payload:
maxRunTime: 1800 # 30min
image: "mozillareleng/services@sha256:1835331e726eae803a7207989ed9c7db03e9fa98bab323df357fd27490576c39"
features:
taskclusterProxy: true
command:
- "/bin/bash"
- "-c"
- "cd /tmp && wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 5 https://github.com/mozilla-releng/services/archive/$GITHUB_HEAD_SHA.tar.gz && tar zxf $GITHUB_HEAD_SHA.tar.gz && cd services-$GITHUB_HEAD_SHA && env && rm -rf /home/app/.cache/nix && ./please -vv tools decision-task"
- metadata:
name: "0. Decision task"
description: "A task that detects changes and rebuilds application that needs to be rebuilt."
owner: "{{ event.head.user.email }}"
source: "https://github.com/mozilla-releng/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
extra:
github:
env: true
events:
- push
branches:
- production
provisionerId: "{{ taskcluster.docker.provisionerId }}"
workerType: "{{ taskcluster.docker.workerType }}"
priority: high
payload:
maxRunTime: 1800 # 30min
image: "mozillareleng/services@sha256:1835331e726eae803a7207989ed9c7db03e9fa98bab323df357fd27490576c39"
features:
taskclusterProxy: true
command:
- "/bin/bash"
- "-c"
- "cd /tmp && wget --retry-connrefused --waitretry=1 --read-timeout=20 --timeout=15 -t 5 https://github.com/mozilla-releng/services/archive/$GITHUB_HEAD_SHA.tar.gz && tar zxf $GITHUB_HEAD_SHA.tar.gz && cd services-$GITHUB_HEAD_SHA && env && rm -rf /home/app/.cache/nix && ./please -vv tools decision-task"