forked from GoogleCloudPlatform/nginx-ssl-proxy
-
Notifications
You must be signed in to change notification settings - Fork 18
/
packer.json
54 lines (54 loc) · 1.08 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
46
47
48
49
50
51
52
53
54
{
"variables": {
"name": "nginx-ssl-proxy",
"git_commit": "",
"git_branch": "",
"account_file": "",
"project_id": "null"
},
"builders": [
{
"type": "docker",
"image": "nginx",
"commit": "true"
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"rm /etc/nginx/conf.d/*.conf"
]
},
{
"type": "file",
"source": "nginx/nginx.conf",
"destination": "/etc/nginx/nginx.conf"
},
{
"type": "file",
"source": "nginx/proxy_ssl.conf",
"destination": "/usr/src/proxy_ssl.conf"
},
{
"type": "file",
"source": "nginx/proxy_nossl.conf",
"destination": "/usr/src/proxy_nossl.conf"
},
{
"type": "file",
"source": "start.sh",
"destination": "/usr/bin/start.sh"
}
],
"post-processors": [
[
{
"type": "docker-tag",
"repository": "gcr.io/{{user `project_id`}}/{{user `name`}}",
"tag": "{{user `git_branch`}}-{{user `git_commit`}}",
"only": ["docker"]
}
]
]
}