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
134 stars 83 forks source link

Packer validate and build failing when using "build_resource_group_name" #107

Open boopathykpm opened 1 week ago

boopathykpm commented 1 week ago

I am facing an issue with "setup-packer" when using "build_resource_group_name" in the packer configuration file.

The gitHub action pipeline fails with the error "Specify either a location to create the resource group in or an existing build_resource_group_name, but not both"

It will fail when location and build_resource_group_name parameters are used together, but my config doesn't have both parameters together.

  1. When both parameters are present - packer validate is succeeding, but packer build failing with the above-mentioned error.
  2. When the location parameter is not present and build_resource_group_name is present - packer validate is failing, it is not allowing my pipeline to move forward.

I tested the same code on my local by installing packer directly from Hashicorp website. I'm not facing any issues as mentioned above with that package.

packer version 1.10.2

ksatirli commented 6 days ago

Hey @boopathykpm, thanks for reporting this.

Can you share a (minimal, but "breaking") example of the code you run so we can replicate it?

Optionally, feel free to share a link to a GHA output.