mirror of https://github.com/hashicorp/packer
Render variables one time on prepare method (#8727)
parent
c2ad9481f6
commit
23fa3107a3
@ -0,0 +1,25 @@
|
|||||||
|
{
|
||||||
|
"builders": [
|
||||||
|
{
|
||||||
|
"name": "chocolate",
|
||||||
|
"type": "null",
|
||||||
|
"communicator": "none"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"provisioners": [
|
||||||
|
{
|
||||||
|
"type": "shell-local",
|
||||||
|
"inline": [
|
||||||
|
"echo hi > provisioner.{{ build `ID`}}.txt"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"post-processors": [
|
||||||
|
{
|
||||||
|
"type": "shell-local",
|
||||||
|
"inline": [
|
||||||
|
"echo hi > post-processor.{{ build `ID`}}.txt"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
Reference in new issue