Merge pull request #10413 from adeniyistephen/hcl-doc

Add hcl Example to docker-save
This commit is contained in:
Megan Marsh 2021-01-04 09:41:15 -08:00 committed by GitHub
commit d260bb63d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -43,7 +43,7 @@ a third-party post-processor.
<Tab heading="HCL2">
```hcl
post-processor "checksum" {
post-processors "checksum" {
checksum_types = ["sha1", "sha256"]
output = "packer_{{.BuildName}}_{{.ChecksumType}}.checksum"
}

View File

@ -42,9 +42,24 @@ The configuration for this post-processor only requires one option.
An example is shown below, showing only the post-processor configuration:
<Tabs>
<Tab heading="JSON">
```json
{
"type": "docker-save",
"path": "foo.tar"
}
```
</Tab>
<Tab heading="HCL2">
```hcl
post-processors "docker-save" {
path = "foo.tar"
}
```
</Tab>
</Tabs>