Merge pull request #10415 from adeniyistephen/hcl-docs

Add hcl example to docker-tag
pull/10445/head
Megan Marsh 5 years ago committed by GitHub
commit 560d5ff270
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -50,6 +50,9 @@ settings are optional.
An example is shown below, showing only the post-processor configuration:
<Tabs>
<Tab heading="JSON">
```json
{
"type": "docker-tag",
@ -57,6 +60,19 @@ An example is shown below, showing only the post-processor configuration:
"tag": "0.7,anothertag"
}
```
</Tab>
<Tab heading="HCL2">
```hcl
post-processors "docker-tag" {
repository = "hashicorp/packer"
tag = "0.7,anothertag"
}
```
</Tab>
</Tabs>
This example would take the image created by the Docker builder and tag it into
the local Docker process with a name of `hashicorp/packer:0.7`.

Loading…
Cancel
Save