Skip to content

actionshub/chef-install

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

chef-install

CI State License

A Github Action to install Chef on a build agent

Note you will need to accept the Chef license, you can find more information at https://docs.chef.io/chef_license.html

There is support for Macos, Linux and Windows with this action

Usage

Use the default settings to install chef-workstation from the stable channel

name: delivery

on: [push, pull_request]

jobs:
  delivery:
    runs-on: ubuntu-latest
    steps:
    - name: Check out code
      uses: actions/checkout@master
    - name: install chef
      uses: actionshub/chef-install@main

Install inspec from the current channel

jobs:
  delivery:
    runs-on: ubuntu-latest
    steps:
    - name: Check out code
      uses: actions/checkout@master
    - name: install chef
      uses: actionshub/chef-install@main
      with:
        channel: current
        project: inspec

Parameters

We support the following parameters

name default description
channel stable Chef Channel to install, stable or current
project chef-workstation Which product to install, see https://docs.chef.io/install_omnibus.html for the list
version latest version to install
omnitruckUrl omnitruck.chef.io which Omnitruck to use, default is Chef Official

By Changing the omnitruck Url you can also install Cinc projects