Last active
July 11, 2019 09:05
-
-
Save Tensho/b1e71f4e6387bc3a1a831d4846a0d5f5 to your computer and use it in GitHub Desktop.
Packer Test Stand
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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