From 08e0f1ea72fbab4bdc65782eb86bb97dfe1fc3f2 Mon Sep 17 00:00:00 2001 From: adeniyistephen Date: Mon, 21 Dec 2020 17:22:44 +0100 Subject: [PATCH] Add hcl example to docker-tag --- .../content/docs/post-processors/docker-tag.mdx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/website/content/docs/post-processors/docker-tag.mdx b/website/content/docs/post-processors/docker-tag.mdx index 2d829c388..521d926ca 100644 --- a/website/content/docs/post-processors/docker-tag.mdx +++ b/website/content/docs/post-processors/docker-tag.mdx @@ -50,6 +50,9 @@ settings are optional. An example is shown below, showing only the post-processor configuration: + + + ```json { "type": "docker-tag", @@ -57,6 +60,20 @@ An example is shown below, showing only the post-processor configuration: "tag": "0.7,anothertag" } ``` + + + + +```hcl +post-processors "docker-tag" { + type = "docker-tag" + repository = "hashicorp/packer" + tag = "0.7,anothertag" +} +``` + + + 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`.