-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.json
69 lines (69 loc) · 1.59 KB
/
build.json
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
{
"variables": {
"channel": null,
"version": null,
"s3_bucket": "",
"iam_instance_profile": ""
},
"builders": [
{
"type" : "amazon-ebsvolume",
"region" : "us-east-2",
"instance_type" : "c5.18xlarge",
"spot_price": "2.0",
"block_duration_minutes": 60,
"source_ami_filter": {
"most_recent": true,
"filters": {
"name": "chromium-builder.*",
"virtualization-type": "hvm",
"root-device-type": "ebs"
},
"owners": ["self"]
},
"ebs_volumes": [
{
"device_name": "/dev/sda1",
"volume_size": 100,
"volume_type": "gp2",
"delete_on_termination": true
}
],
"iam_instance_profile": "{{user `iam_instance_profile`}}",
"ssh_username" : "ubuntu"
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"mkdir -p ~/src",
"mkdir -p ~/chromium/src/out/Headless",
"sudo mount -t tmpfs -o size=20G,nr_inodes=40k,mode=1777 tmpfs ~/chromium/src/out/Headless"
]
},
{
"type": "file",
"source": "./src/",
"destination": "~/src/"
},
{
"type": "file",
"source": "./args.gn",
"destination": "~/chromium/src/out/Headless/"
},
{
"type": "shell",
"environment_vars": [
"CR_CHANNEL={{user `channel`}}",
"CR_VERSION={{user `version`}}",
"S3_BUCKET={{user `s3_bucket`}}"
],
"scripts": [
"scripts/build.sh",
"scripts/package.sh",
"scripts/upload.sh"
]
}
]
}