Add hcl example to docker-tag

This commit is contained in:
adeniyistephen 2020-12-21 17:22:44 +01:00
parent 28245ec143
commit 08e0f1ea72
1 changed files with 17 additions and 0 deletions

View File

@ -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,20 @@ An example is shown below, showing only the post-processor configuration:
"tag": "0.7,anothertag"
}
```
</Tab>
<Tab heading="HCL2">
```hcl
post-processors "docker-tag" {
type = "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`.