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
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@mainInstall 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: inspecWe 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