add basic HCL2 docs for file builder
This commit is contained in:
parent
c3f2cc64f7
commit
6513372a01
|
@ -21,6 +21,9 @@ wait times.
|
||||||
Below is a fully functioning example. It create a file at `target` with the
|
Below is a fully functioning example. It create a file at `target` with the
|
||||||
specified `content`.
|
specified `content`.
|
||||||
|
|
||||||
|
<Tabs>
|
||||||
|
<Tab heading="JSON">
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"type": "file",
|
"type": "file",
|
||||||
|
@ -29,6 +32,24 @@ specified `content`.
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
</Tab>
|
||||||
|
<Tab heading="HCL2">
|
||||||
|
|
||||||
|
```hcl
|
||||||
|
source "file" "basic-example" {
|
||||||
|
content = "Lorem ipsum dolor sit amet"
|
||||||
|
target = "dummy_artifact"
|
||||||
|
}
|
||||||
|
|
||||||
|
build {
|
||||||
|
sources = ["sources.file.basic-example"]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
</Tab>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
|
|
||||||
## Configuration Reference
|
## Configuration Reference
|
||||||
|
|
||||||
Configuration options are organized below into two categories: required and
|
Configuration options are organized below into two categories: required and
|
||||||
|
|
Loading…
Reference in New Issue