Files
Packer-Cn/website/source/docs/post-processors/checksum.html.md
T
2016-05-18 17:31:16 -07:00

1.5 KiB


description: | The checksum post-processor computes specified checksum for the artifact list from an upstream builder or post-processor. All downstream post-processors will see the new artifacts. The primary use-case is compute checksum for artifacts allows to verify it later. So firstly this post-processor get artifact, compute it checksum and pass to next post-processor original artifacts and checksum files. layout: docs page_title: 'Checksum Post-Processor' ...

Checksum Post-Processor

Type: checksum

The checksum post-processor computes specified checksum for the artifact list from an upstream builder or post-processor. All downstream post-processors will see the new artifacts. The primary use-case is compute checksum for artifact to verify it later.

After computes checksum for artifacts, you can use new artifacts with other post-processors like artifice, compress, docker-push, atlas, or a third-party post-processor.

Basic example

The example below is fully functional.

{
"type": "checksum"
}

Configuration Reference

Optional parameters:

  • checksum_types (array of strings) - An array of strings of checksum types to compute. Allowed values are md5, sha1, sha224, sha256, sha384, sha512.
  • output (string) - Specify filename to store checksums.