jonlives / knife-spork

A workflow plugin to help many devs work with cookbooks and environments at once
Other
335 stars 97 forks source link

Git plugin not committing / pushing changes #204

Closed Stretch96 closed 8 years ago

Stretch96 commented 8 years ago

Not sure if this is due to a lack of documentation or misunderstanding on my part, but is the Git plugin supposed to commit and push changes?

Currently it only adds changes to the local repo.

I've opened a question on SO, because I thought it was just me being weird ... http://stackoverflow.com/questions/39680243/chef-knife-spork-git-plugin-not-committing-or-pushing

I was under the impression that bumping / uploading a cookbook would also commit and push the repo?

Stretch96 commented 8 years ago

Okay Yep I had misunderstood the flow ...

So You have to create your environments first:

knife spork environment create production
knife spork environment create development

Then once the cookbook is ready for an environment, you promote it

knife spork promote development COOKBOOK

And it then commits and pushes it

This con be closed 👍