github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/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      "fastly_api_key": "{{ env `FASTLY_API_KEY` }}"
     7    },
     8    "builders": [
     9      {
    10        "type": "docker",
    11        "image": "hashicorp/middleman-hashicorp:0.3.22",
    12        "discard": "true",
    13        "run_command": ["-d", "-i", "-t", "{{ .Image }}", "/bin/sh"]
    14      }
    15    ],
    16    "provisioners": [
    17      {
    18        "type": "file",
    19        "source": ".",
    20        "destination": "/website"
    21      },
    22      {
    23        "type": "shell",
    24        "environment_vars": [
    25          "AWS_ACCESS_KEY_ID={{ user `aws_access_key_id` }}",
    26          "AWS_SECRET_ACCESS_KEY={{ user `aws_secret_access_key` }}",
    27          "AWS_REGION={{ user `aws_region` }}",
    28          "FASTLY_API_KEY={{ user `fastly_api_key` }}"
    29        ],
    30        "inline": [
    31          "bundle check || bundle install",
    32          "bundle exec middleman build",
    33          "/bin/sh ./scripts/deploy.sh"
    34        ]
    35      }
    36    ]
    37  }