Add hcl example to docker-tag
This commit is contained in:
parent
28245ec143
commit
08e0f1ea72
|
@ -50,6 +50,9 @@ settings are optional.
|
||||||
|
|
||||||
An example is shown below, showing only the post-processor configuration:
|
An example is shown below, showing only the post-processor configuration:
|
||||||
|
|
||||||
|
<Tabs>
|
||||||
|
<Tab heading="JSON">
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"type": "docker-tag",
|
"type": "docker-tag",
|
||||||
|
@ -57,6 +60,20 @@ An example is shown below, showing only the post-processor configuration:
|
||||||
"tag": "0.7,anothertag"
|
"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
|
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`.
|
the local Docker process with a name of `hashicorp/packer:0.7`.
|
||||||
|
|
Loading…
Reference in New Issue