-
Notifications
You must be signed in to change notification settings - Fork 7
/
.taskcluster.yml
93 lines (92 loc) · 3.51 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
version: 1
policy:
pullRequests: collaborators
tasks:
$match:
'tasks_for == "github-push" && event.ref == "refs/heads/testing"':
taskId: {$eval: as_slugid("testing_task")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
provisionerId: releng-t
workerType: linux-gcp
scopes:
- secrets:get:repo:github.com/mozilla-releng/product-details:branch:testing
payload:
maxRunTime: 3600
image: python:3
env:
TC_SECRET_URL: http://taskcluster/secrets/v1/secret/repo:github.com/mozilla-releng/product-details:branch:testing
WEBSITE_BUCKET: relengstatic-testing-productdetails-static-website
features:
taskclusterProxy: true
command:
- /bin/bash
- '--login'
- '-c'
- >-
git clone ${event.repository.clone_url} repo && cd repo &&
git checkout ${event.after} &&
pip3 -q install awscli --upgrade && ./scripts/deploy
metadata:
name: deploy testing
description: 'Deploy to https://product-details.testing.mozilla-releng.net/'
owner: ${event.pusher.name}@users.noreply.github.com
source: ${event.repository.url}
'tasks_for == "github-push" && event.ref == "refs/heads/staging"':
taskId: {$eval: as_slugid("staging_task")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
provisionerId: releng-3
workerType: linux-gcp
scopes:
- secrets:get:repo:github.com/mozilla-releng/product-details:branch:staging
payload:
maxRunTime: 3600
image: python:3
env:
TC_SECRET_URL: http://taskcluster/secrets/v1/secret/repo:github.com/mozilla-releng/product-details:branch:staging
WEBSITE_BUCKET: relengstatic-staging-productdetails-static-website
features:
taskclusterProxy: true
command:
- /bin/bash
- '--login'
- '-c'
- >-
git clone ${event.repository.clone_url} repo && cd repo &&
git checkout ${event.after} &&
pip3 -q install awscli --upgrade && ./scripts/deploy
metadata:
name: deploy staging
description: 'Deploy to https://product-details.staging.mozilla-releng.net/'
owner: ${event.pusher.name}@users.noreply.github.com
source: ${event.repository.url}
'tasks_for == "github-push" && event.ref == "refs/heads/production"':
taskId: {$eval: as_slugid("production_task")}
created: {$fromNow: ''}
deadline: {$fromNow: '1 hour'}
provisionerId: releng-3
workerType: linux-gcp
scopes:
- secrets:get:repo:github.com/mozilla-releng/product-details:branch:production
payload:
maxRunTime: 3600
image: python:3
env:
TC_SECRET_URL: http://taskcluster/secrets/v1/secret/repo:github.com/mozilla-releng/product-details:branch:production
WEBSITE_BUCKET: relengstatic-prod-productdetails-static-website
features:
taskclusterProxy: true
command:
- /bin/bash
- '--login'
- '-c'
- >-
git clone ${event.repository.clone_url} repo && cd repo &&
git checkout ${event.after} &&
pip3 -q install awscli --upgrade && ./scripts/deploy
metadata:
name: deploy production
description: 'Deploy to https://product-details.mozilla-releng.net/'
owner: ${event.pusher.name}@users.noreply.github.com
source: ${event.repository.url}