setup-packer icon indicating copy to clipboard operation
setup-packer copied to clipboard

add support for selecting Packer version

Open ksatirli opened this issue 3 years ago • 3 comments

Different use cases might call for an older (or newer) Packer version than is currently hardcoded in the Action.

The Packer version should be user-defined.

ksatirli avatar Feb 25 '21 16:02 ksatirli

Could this not be achieved by having different releases, with tags that match the version of packer in the Dockerfile ? For example I submitted a PR to update to 1.7.3 this could be release as @1.7.3 and users could reference this action like this uses: hashicorp/[email protected]

Thoughts ?

ruimoreira avatar Jun 17 '21 07:06 ruimoreira

Is there any update on this? I have a required_version parameter in my packer.hcl and for 1.8.0 and 1.7.10 the run fails with:

Error: Unsupported Packer Core version

  on packer/packer.pkr.hcl line 2, in packer:
   2:   required_version = ">= 1.7.[10]"

anitakrueger avatar Mar 18 '22 11:03 anitakrueger

I didn't see a supported version in the README either unfortunartely. I do see from the last commit now that we need to use 1.7.8.

anitakrueger avatar Mar 18 '22 11:03 anitakrueger