-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.json
46 lines (46 loc) · 1014 Bytes
/
template.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
{
"variables": {
"version": "2.4.0"
},
"builders": [
{
"type": "docker",
"image": "amazonlinux",
"commit": true
},
{
"type": "amazon-ebs",
"region": "ap-northeast-1",
"source_ami": "ami-374db956",
"instance_type": "m3.medium",
"ssh_username": "ec2-user",
"ami_name": "aws-lambda-bins-ruby-{{user `version`}}",
"force_deregister": true
}
],
"provisioners": [
{
"type": "ansible",
"playbook_file": "./playbook.yml",
"extra_arguments": [
"--extra-vars",
"version={{user `version`}} build_type={{build_type}}"
]
},
{
"type": "file",
"source": "dest.tar.gz",
"destination": "./dest/ruby-{{user `version`}}.tar.gz",
"direction": "download",
"only": ["amazon-ebs"]
}
],
"post-processors": [
{
"type": "docker-tag",
"repository": "aws_lambda_bins/ruby",
"tag": "{{user `version`}}",
"only": ["docker"]
}
]
}