github.com/schwarzm/garden-linux@v0.0.0-20150507151835-33bca2147c47/packer/garden-ci/release_docker.json (about)

     1  {
     2    "variables": {
     3      "docker_repository": "{{env `GARDEN_PACKER_DOCKER_REPO`}}",
     4      "image_version": "",
     5      "login_username": "{{env `GARDEN_PACKER_DOCKER_USERNAME`}}",
     6      "login_email": "{{env `GARDEN_PACKER_DOCKER_EMAIL`}}",
     7      "login_password": "{{env `GARDEN_PACKER_DOCKER_PASSWORD`}}"
     8    },
     9    "builders": [
    10      {
    11        "type": "docker",
    12        "image": "garden-ci-ubuntu:packer",
    13        "pull": false,
    14        "commit": true
    15      }
    16    ],
    17    "post-processors": [
    18      {
    19          "type": "docker-tag",
    20          "repository": "{{user `docker_repository`}}",
    21          "tag": "latest"
    22      },
    23      [
    24        {
    25          "type": "docker-tag",
    26          "repository": "{{user `docker_repository`}}",
    27          "tag": "{{user `image_version`}}"
    28        },
    29        {
    30          "type": "docker-push",
    31          "login": true,
    32          "login_username": "{{user `login_username`}}",
    33          "login_email": "{{user `login_email`}}",
    34          "login_password": "{{user `login_password`}}"
    35        }
    36      ]
    37    ]
    38  }