-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacker.json
45 lines (45 loc) · 1.26 KB
/
packer.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
{
"variables": {
"api_key": "{{ env `DIGITAL_OCEAN_API_TOKEN` }}"
},
"builders": [
{
"type": "digitalocean",
"api_token": "{{ user `api_key` }}",
"image": "ubuntu-16-04-x64",
"region": "sfo2",
"size": "512mb",
"ssh_username": "root",
"snapshot_name": "buildkite-{{ timestamp }}"
}
],
"provisioners": [
{
"type": "shell",
"scripts": [
"{{pwd}}/scripts/base.sh",
"{{pwd}}/scripts/docker.sh",
"{{pwd}}/scripts/docker-tcp.sh",
"{{pwd}}/scripts/buildkite.sh",
"{{pwd}}/scripts/ansible.sh",
"{{pwd}}/scripts/digitalocean.sh",
"{{pwd}}/scripts/hugo.sh",
"{{pwd}}/scripts/promtool.sh",
"{{pwd}}/scripts/java.sh",
"{{pwd}}/scripts/sbt.sh",
"{{pwd}}/scripts/nodejs.sh"
]
},
{
"type": "ansible-local",
"playbook_file": "local.yml",
"clean_staging_directory": true
},
{
"type": "shell",
"inline": [
"usermod -aG docker buildkite-agent"
]
}
]
}