From 6513372a01df4c9a6aea68b5f208b6060d737f98 Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Tue, 16 Jun 2020 17:05:02 +0200 Subject: [PATCH] add basic HCL2 docs for file builder --- website/pages/docs/builders/file.mdx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/website/pages/docs/builders/file.mdx b/website/pages/docs/builders/file.mdx index 2ed8e2e0d..d153fd087 100644 --- a/website/pages/docs/builders/file.mdx +++ b/website/pages/docs/builders/file.mdx @@ -21,6 +21,9 @@ wait times. Below is a fully functioning example. It create a file at `target` with the specified `content`. + + + ```json { "type": "file", @@ -29,6 +32,24 @@ specified `content`. } ``` + + + +```hcl +source "file" "basic-example" { + content = "Lorem ipsum dolor sit amet" + target = "dummy_artifact" +} + +build { + sources = ["sources.file.basic-example"] +} +``` + + + + + ## Configuration Reference Configuration options are organized below into two categories: required and