From dda70b6d323a8577258a818c95c74425ac7cd3d7 Mon Sep 17 00:00:00 2001 From: Greg Hellings Date: Wed, 4 May 2022 08:57:40 -0500 Subject: [PATCH] Add workflow and README file --- .github/workflows/test.yml | 2 +- README.box.md | 23 +++++++++++++++++++++++ sources/qemu.pkr.hcl | 11 +++++++++-- 3 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 README.box.md diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b19c68e..c901fdf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,5 +14,5 @@ jobs: run: | set -exo pipefail for vars in distros/*; do - ~/bin/packerio validate -var-file=${vars} sources/ + ~/bin/packerio validate -except=upload -var-file=${vars} sources/ done diff --git a/README.box.md b/README.box.md new file mode 100644 index 0000000..ba9155b --- /dev/null +++ b/README.box.md @@ -0,0 +1,23 @@ +* Distro: ${distro} +* Version: ${version} +* Arch: ${arch} +* Build: ${build} +* Date: ${formatdate("DD MMM YYYY", timestamp())} +* Bugs: [vms](https://github.com/greg-hellings/vms/issues) + +A bare-minimum installation of the guest OS. x86_64/amd64 builds are done on +[Github Actions](https://github.com/greg-hellings/vms/actions) at regular intervals. + +If you encounter a bug in the box, please file an issue. If you +want a newer version of your desired operating system or want to add a distribution to this +collection, please either file a PR there or open a bug. If you are opening a bug, please provide +as much information as you can about how an automated installation of your desired distribution +works. + +The goal is to have the bare minimum software to be considered a basic installation of the guest +OS that is still accessible with Vagrant. Straggling packages or leftover files from the build +process should be considered as bugs to be filed. + +A big shoutout to Github Actions for offering a full VM experience, by default, and generous +execution times ranging up to 6 hours per task, which allows use of their platform to build +these boxes with no additional cost to the community. diff --git a/sources/qemu.pkr.hcl b/sources/qemu.pkr.hcl index e03c827..02c50fa 100644 --- a/sources/qemu.pkr.hcl +++ b/sources/qemu.pkr.hcl @@ -59,6 +59,13 @@ variable "headless" { locals { name = "${var.distro}-${var.version}-${var.arch}" + build = formatdate("YYYYMMDDhh", timestamp()) + description = templatefile("../README.box.md", { + distro = var.distro + arch = var.arch + version = var.version + build = local.build + }) } source "qemu" "x86_64" { @@ -106,8 +113,8 @@ build { post-processor "vagrant-cloud" { name = "upload" box_tag = "greg-hellings/${local.name}" - version = "{{isotime \"2006010203\"}}" - version_description = templatefile("../README.box.md") + version = local.build + version_description = local.description } } }