Skip to content

Instantly share code, notes, and snippets.

@Tensho
Last active July 11, 2019 09:05
Show Gist options
  • Save Tensho/b1e71f4e6387bc3a1a831d4846a0d5f5 to your computer and use it in GitHub Desktop.
Save Tensho/b1e71f4e6387bc3a1a831d4846a0d5f5 to your computer and use it in GitHub Desktop.
Packer Test Stand
# https: //www.packer.io/docs/templates/engine.html
{
"description": "Stand",
"min_packer_version": "1.4.1",
"variables": {
"version": "v0.0.1"
},
"builders": [
{
"type": "null",
"communicator": "none"
}
],
"provisioners": [
{
"type": "shell-local",
"command": "echo {{ user `version` }} | sed \"s/^.//\""
},
{
"type": "shell-local",
"command": "echo {{ sed \"s/^.//\" \"v0.0.1\" }}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment