Skip to content

Chef cookbook Github Action Demo Repository, created for Dev community hackathon submission.

License

Notifications You must be signed in to change notification settings

chefgs/dev_github_actions

Repository files navigation

Chef Cookbook DIY Github Action

Workflow Details

Chef is widely used and most popular Infra as code technology in DevOps World..

This specific GitHub Action Workflow has been used for creating DIY deployment for Chef cookbooks. The below mentioned Continuous Integration aspects are covered in the Workflow,

  • It checks-out the code into Workspace
  • Performs Cookbook Code Analysis using cookstyle
  • Executes the cookbook in local mode (chef-client - z option)
  • Executes the rspec unit test cases (Chef cookbook Behaviour Driven Development)
  • Packages the cookbooks using Berkshelf which uses berksfile
  • Creates tar.gz archive of Cookbook packages
  • In case of any workflow failures, it sends out email to respective developers and maintainers of the repository

Here is the link to Github Action Workflow file

Cookbook Details

Cookbook performs below tasks,

  • Creates an user group called chefusers
  • Creates an user called 'bob'
  • Creates a directory cheftest in '/tmp'
  • Creates a file chef.txt inside cheftest and assigns user 'bob' and group 'chefusers' to the file

About

Chef cookbook Github Action Demo Repository, created for Dev community hackathon submission.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published