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

add support for selecting Packer version #16

Closed ksatirli closed 1 year ago

ksatirli commented 3 years ago

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.

ruimoreira commented 3 years ago

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/packer-github-actions@1.7.3

Thoughts ?

anitakrueger commented 2 years ago

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 commented 2 years ago

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.

JenGoldstrich commented 1 year ago

This will be available in the new version of this action called setup-packer which will be released on the main branch of this rpeo