Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Github action for packer #10452

Open
caulagi opened this issue Jan 8, 2021 · 4 comments
Open

Github action for packer #10452

caulagi opened this issue Jan 8, 2021 · 4 comments

Comments

@caulagi
Copy link

caulagi commented Jan 8, 2021

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

Is there any plan to provide a github action similar to terraform like https://github.com/hashicorp/setup-terraform?

Use Case(s)

I would like to run packer validate and packer fmt from CI pipeline

Potential configuration

steps:
- uses: hashicorp/setup-packer@v1
  with:
    packer_version: 1.6.6

Potential References

https://github.com/hashicorp/setup-terraform

@nywilken
Copy link
Contributor

nywilken commented Jan 8, 2021

Hi there @caulagi have you seen the work done at https://github.com/marketplace/actions/packer-github-actions?

It might be exactly what you are looking for. Let us know.

@caulagi
Copy link
Author

caulagi commented Jan 8, 2021

@nywilken I see that this issue was labelled as docs. Is this the 'official' recommendation for running packer with github actions? I have a few issues currently that I am going to raise issues for with operatehappy/packer-github-actions repository -

  • Seems to support old packer (1.5.5)
  • No option to specify the version. It would be nice to be able to do -
    steps:
    - uses: <provider>/setup-packer@v1
       with:
         packer_version: 1.6.6
    
  • Handling of target is a bit weird with a default of artifacts.pkr.json

@ghost ghost removed stage/waiting-reply labels Jan 8, 2021
@nywilken
Copy link
Contributor

Hi there @caulagi thanks for the follow up here. I added the docs label to this issue because I think it would be great to have a link to this action or maybe a guide on https://packer.io.

We don't have an 'official' recommendation for running packer with github actions, but this can be the start of it. As you mentioned, I suggest you open up an issue on operatehappy/packer-github-actions.

I know that the maintainers are planning to refactor things a bit so your feedback would be helpful.

@caulagi
Copy link
Author

caulagi commented Jan 13, 2021

I would say 2 things that I would find very useful are -

  • support for 1.6.6 at least (since that provides packer fmt -check.
  • Using . as the default target - issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants