Add vagrant cloud taken for uploads

This commit is contained in:
Greg Hellings
2022-05-27 08:40:09 -05:00
parent 5370a91e0c
commit d7643afdfe
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -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
+5
View File
@@ -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())