From d7643afdfec8d71e645f2129fae7330a64c96b84 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Fri, 27 May 2022 08:40:09 -0500 Subject: [PATCH] Add vagrant cloud taken for uploads --- sources/build.pkr.hcl | 1 + sources/inputs.pkr.hcl | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/sources/build.pkr.hcl b/sources/build.pkr.hcl index 43b5b46..dfa3994 100644 --- a/sources/build.pkr.hcl +++ b/sources/build.pkr.hcl @@ -22,6 +22,7 @@ build { post-processor "vagrant-cloud" { name = "upload" + access_token = var.vagrant_cloud_token box_tag = "boxen/${local.name}" version = local.build version_description = local.description diff --git a/sources/inputs.pkr.hcl b/sources/inputs.pkr.hcl index 009de0f..289d130 100644 --- a/sources/inputs.pkr.hcl +++ b/sources/inputs.pkr.hcl @@ -57,6 +57,11 @@ variable "headless" { default = true } +variable "vagrant_cloud_token" { + type = string + default = env("VAGRANT_CLOUD_TOKEN") +} + locals { name = "${var.distro}-${var.version}-${var.arch}" build = formatdate("YYYYMMDDhh", timestamp())