Drone plugins > Packer

This plugin can build automated machine images with Packer.

Example

kind: pipeline
name: default

steps:
- name: packer
  image: appleboy/drone-packer
  settings:
    template: aws.json
    actions: build

Properties

  • actions

    arrayoptional

    a list of actions to have packer perform.

    Default: none

  • vars

    objectoptional

    a map of variables to pass to the Packer build commands. Each value is passed as a <key>=<value> option.

    Default: none

  • var_files

    arrayoptional

    a list of var files to use. Each value is passed as -var-file=.

    Default: none

  • except

    arrayoptional

    validate or build all builds other than these.

    Default: none

  • only

    arrayoptional

    validate or build only the specified builds.

    Default: none

  • template

    stringoptional

    A json file will execute multiple builds in parallel as defined in the template.

    Default: none

  • syntax_only

    booleanoptional

    Only check syntax. Do not verify config of the template.

    Default: false

  • color

    booleanoptional

    Disable color output.

    Default: false

  • debug

    booleanoptional

    Debug mode enabled for builds.

    Default: false

  • parallel

    booleanoptional

    Disable parallelization.

    Default: false

  • force

    booleanoptional

    Force a build to continue if artifacts exist, deletes existing artifacts.

    Default: false

  • readable

    booleanoptional

    Machine-readable output.

    Default: false