hetznercloud / packer-plugin-hcloud

Packer plugin for Hetzner Cloud Builder
https://developer.hashicorp.com/packer/integrations/hetznercloud/hcloud
Mozilla Public License 2.0
22 stars 21 forks source link

Add skip_create_image config parameter to builder #86

Open Voldemat opened 10 months ago

Voldemat commented 10 months ago

Community Note

Please vote on this issue by adding a šŸ‘ reaction to the original issue to help the community and maintainers prioritize this request. Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request. If you are interested in working on this issue or have submitted a pull request, please leave a comment.

Description

The feature is fairly simple, if skip_create_image=true we don`t publish AMI in cloud, just run defined provisioners to ensure that all scripts are correct. Otherwise, is skip_create_image=false whole process left unchanged. I can create pull request for that, just wanna make sure you are cool with it.

Use Case(s)

For example, I have CI/CD pipeline where I build packer image. So I add changes to build configuration in some branch, let`s say feature/change-packer. Now I want to check my scripts are correct before I merge into main branch. In order to do that, whole building process should run but without publishing actual AMI image, it would be done in the main branch.

Potential configuration

skip_create_image=false

Potential References

Such feature already implemented in Google Packer Plugin, link to pull request provided below. https://github.com/hashicorp/packer/pull/10496

apricote commented 7 months ago

We are open to merging a pull request for this :)