blob: f9a1113f023dd791d76901179a173fa78ec9c71e (
plain)
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
|
---
task:
created:
relative-datestamp: "0 seconds"
deadline:
relative-datestamp: "24 hours"
metadata:
name: 'Docker Image Build: {{image_name}}'
description: 'Build the docker image {{image_name}} for use by dependent tasks'
source: '{{source}}'
owner: mozilla-taskcluster-maintenance@mozilla.com
tags:
createdForUser: '{{owner}}'
workerType: taskcluster-images
provisionerId: aws-provisioner-v1
schedulerId: task-graph-scheduler
routes:
# Indexing routes to avoid building the same image twice
- index.{{index_image_prefix}}.level-{{level}}.{{image_name}}.latest
- index.{{index_image_prefix}}.level-{{level}}.{{image_name}}.pushdate.{{year}}.{{month}}-{{day}}-{{pushtime}}
- index.{{index_image_prefix}}.level-{{level}}.{{image_name}}.hash.{{context_hash}}
# Treeherder routes
- tc-treeherder.v2.{{project}}.{{head_rev}}.{{pushlog_id}}
- tc-treeherder-stage.v2.{{project}}.{{head_rev}}.{{pushlog_id}}
scopes:
- secrets:get:project/taskcluster/gecko/hgfingerprint
- docker-worker:cache:level-{{level}}-imagebuilder-v1
payload:
env:
HASH: '{{context_hash}}'
PROJECT: '{{project}}'
CONTEXT_URL: '{{context_url}}'
IMAGE_NAME: '{{image_name}}'
GECKO_BASE_REPOSITORY: '{{base_repository}}'
GECKO_HEAD_REPOSITORY: '{{head_repository}}'
GECKO_HEAD_REV: '{{head_rev}}'
HG_STORE_PATH: '/home/worker/checkouts/hg-store'
cache:
'level-{{level}}-imagebuilder-v1': '/home/worker/checkouts'
features:
dind: true
chainOfTrust: true
taskclusterProxy: true
image: '{{#docker_image}}image_builder{{/docker_image}}'
maxRunTime: 3600
artifacts:
'{{artifact_path}}':
type: 'file'
path: '/home/worker/workspace/artifacts/image.tar.zst'
expires:
relative-datestamp: "1 year"
extra:
imageMeta: # Useful when converting back from JSON in action tasks
level: '{{level}}'
contextHash: '{{context_hash}}'
imageName: '{{image_name}}'
treeherderEnv:
- staging
- production
treeherder:
jobKind: other
build:
platform: 'taskcluster-images'
groupSymbol: 'I'
|