Also pass in the template contents and name of the template when pushing

This commit is contained in:
Seth Vargo 2015-02-03 18:34:20 -05:00
parent 983b0b8988
commit 6728326cc3
1 changed files with 2 additions and 0 deletions

View File

@ -155,6 +155,8 @@ func (c *PushCommand) Run(args []string) int {
if message != "" {
metadata["message"] = message
}
metadata["template"] = tpl.RawContents
metadata["template_name"] = filepath.Base(args[0])
uploadOpts.Metadata = metadata
// Warn about builds not having post-processors.