hashicorp / setup-packer

Run HashiCorp Packer as part of your GitHub Actions Workflow
https://github.com/marketplace/actions/setup-hashicorp-packer
Apache License 2.0
144 stars 83 forks source link

Not support vagrant builder #31

Closed kevinpan45 closed 1 year ago

kevinpan45 commented 2 years ago

Build 'vagrant' errored: Failed creating VirtualBox driver: Error: Packer cannot find Vagrant in the path: exec: "vagrant": executable file not found in $PATH

==> Some builds didn't complete successfully and had errors: --> vagrant: Failed creating VirtualBox driver: Error: Packer cannot find Vagrant in the path: exec: "vagrant": executable file not found in $PATH

ksatirli commented 2 years ago

This builder only makes the packer binary available.

If you need access to Vagrant builds, you'd need to get a vagrant binary on the Runner.

The easiest way would be to replicate something like setup-terraform and replace with the correct binary.

ksatirli commented 1 year ago

Hey @kevinpan45,

Coming back to this after a while!

In the older version of this Action (available via master, saving output was indeed not easily possible, because we didn't provide this option to users.

In the new version, available via main, we now support the standard GitHub Actions flow, which allows you to install custom applications (such as Vagrant, VirtualBox and whatever else you need).

I'll close this issue as it is no longer applicable.