2016-01-14 18:42:53 +00:00
|
|
|
{
|
|
|
|
"variables": {
|
|
|
|
"aws_access_key_id": "{{ env `AWS_ACCESS_KEY_ID` }}",
|
|
|
|
"aws_secret_access_key": "{{ env `AWS_SECRET_ACCESS_KEY` }}",
|
|
|
|
"aws_region": "{{ env `AWS_REGION` }}",
|
|
|
|
"fastly_api_key": "{{ env `FASTLY_API_KEY` }}"
|
|
|
|
},
|
|
|
|
"builders": [
|
|
|
|
{
|
|
|
|
"type": "docker",
|
2017-06-27 11:04:04 +00:00
|
|
|
"image": "hashicorp/middleman-hashicorp:0.3.28",
|
2017-03-03 16:26:26 +00:00
|
|
|
"discard": "true",
|
2017-08-02 21:57:19 +00:00
|
|
|
"volumes": {
|
|
|
|
"{{ pwd }}": "/website"
|
|
|
|
}
|
2016-01-14 18:42:53 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"provisioners": [
|
|
|
|
{
|
|
|
|
"type": "shell",
|
|
|
|
"environment_vars": [
|
|
|
|
"AWS_ACCESS_KEY_ID={{ user `aws_access_key_id` }}",
|
|
|
|
"AWS_SECRET_ACCESS_KEY={{ user `aws_secret_access_key` }}",
|
|
|
|
"AWS_REGION={{ user `aws_region` }}",
|
|
|
|
"FASTLY_API_KEY={{ user `fastly_api_key` }}"
|
|
|
|
],
|
|
|
|
"inline": [
|
2017-03-03 16:26:26 +00:00
|
|
|
"bundle check || bundle install",
|
2016-01-14 18:42:53 +00:00
|
|
|
"bundle exec middleman build",
|
2017-05-09 21:00:34 +00:00
|
|
|
"/bin/bash ./scripts/deploy.sh"
|
2016-01-14 18:42:53 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|