Skip to content

FastRobot/chef-cookbook-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chef cookbook action

This action performs the standard set of tasks on a chef cookbook. It is reusable, meant to be called multiple times in a workflow, pattered after how the terraform github action is structured.

Currently working:

Planned:

  • rspec
  • kitchen test
  • some form of bump/tag (stove?)
  • berks install/upload

Secrets

  • cloud secrets for kitchen
  • a chef pem

Inputs

  • chef_task - one of lint, kitchen, berks

Outputs

none. The Action commands will either all exit cleanly or will throw a non-zero RC and log their complaint. Fix it or Mask it and try again.

Example usage

Fast linting on any branch/commit

name: Unit
uses: FastRobot/chef-cookbook-action@v0.1.0
with:
 chef_actions_task: 'spec'

Full kitchen create/converge/verify/destroy cycle, optionally using other cloud resources

name: Integration
uses: FastRobot/chef-cookbook-action@v0.1.0
with:
  chef_actions_task: 'kitchen test -d always'
env:
  AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
  AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

Based off of the excellent action pattern from: https://github.com/hashicorp/terraform-github-actions

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors