Merge pull request #10413 from adeniyistephen/hcl-doc
Add hcl Example to docker-save
This commit is contained in:
commit
d260bb63d3
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue