github.com/anuvu/nomad@v0.8.7-atom1/website/packer.json (about)

     1  {
     2    "variables": {
     3      "aws_access_key_id": "{{ env `AWS_ACCESS_KEY_ID` }}",
     4      "aws_secret_access_key": "{{ env `AWS_SECRET_ACCESS_KEY` }}",
     5      "aws_region": "{{ env `AWS_REGION` }}",
     6      "website_environment": "production",
     7      "fastly_api_key": "{{ env `FASTLY_API_KEY` }}"
     8    },
     9    "builders": [
    10      {
    11        "type": "docker",
    12        "image": "hashicorp/middleman-hashicorp:0.3.35",
    13        "discard": "true",
    14        "volumes": {
    15          "{{ pwd }}": "/website"
    16        }
    17      }
    18    ],
    19    "provisioners": [
    20      {
    21        "type": "shell",
    22        "environment_vars": [
    23          "AWS_ACCESS_KEY_ID={{ user `aws_access_key_id` }}",
    24          "AWS_SECRET_ACCESS_KEY={{ user `aws_secret_access_key` }}",
    25          "AWS_REGION={{ user `aws_region` }}",
    26          "ENV={{ user `website_environment` }}",
    27          "FASTLY_API_KEY={{ user `fastly_api_key` }}"
    28        ],
    29        "inline": [
    30          "bundle check || bundle install",
    31          "bundle exec middleman build",
    32          "/bin/bash ./scripts/deploy.sh"
    33        ]
    34      }
    35    ]
    36  }