forked from hashicorp/demo-app-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.json
60 lines (60 loc) · 1.17 KB
/
compile.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
{
"variables": {
"app_slug": "{{ env `ATLAS_APPLICATION_SLUG` }}"
},
"builders": [
{
"type": "docker",
"image": "progrium/cedarish:cedar14",
"commit": true
}
],
"provisioners": [
{
"type": "shell",
"inline": [
"curl --silent http://dl.gliderlabs.com/herokuish/latest/linux_x86_64.tgz | tar -xzC /bin"
]
},
{
"type": "file",
"source": ".",
"destination": "/tmp/app"
},
{
"type": "shell",
"inline": [
"ls -lRa /tmp/app"
]
},
{
"type": "shell",
"inline": [
"herokuish buildpack install https://github.com/heroku/heroku-buildpack-nodejs",
"herokuish buildpack build",
"cd /app",
"tar czvf /tmp/slug.tar.gz .",
"sleep 10"
]
},
{
"type": "file",
"source": "/tmp/slug.tar.gz",
"destination": "slug.tar.gz",
"direction": "download"
}
],
"post-processors": [
[
{
"type": "artifice",
"files": ["slug.tar.gz"]
},
{
"type": "atlas",
"artifact": "{{user `app_slug` }}",
"artifact_type": "archive"
}
]
]
}