Commit f5c47a79 authored by Lance Albertson's avatar Lance Albertson
Browse files

Update to use Sous Chefs GH workflow


Signed-off-by: default avatarLance Albertson <lance@osuosl.org>
parent 742626b4
---
name: Branch Cleanup
# This workflow is triggered on all closed pull requests.
# However the script does not do anything if a merge was not performed.
"on":
pull_request:
types: [closed]
env:
NO_BRANCH_DELETED_EXIT_CODE: 0
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: jessfraz/branch-cleanup-action@master
---
name: ci
"on":
pull_request:
push:
branches:
- master
jobs:
delivery:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Run Chef Delivery
uses: actionshub/chef-delivery@master
env:
CHEF_LICENSE: accept-no-persist
yamllint:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Run yaml Lint
uses: actionshub/yamllint@master
mdl:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Run Markdown Lint
uses: actionshub/markdownlint@master
dokken:
needs: [mdl, yamllint, delivery]
runs-on: ubuntu-latest
strategy:
matrix:
os:
- 'amazonlinux'
- 'amazonlinux-2'
- 'debian-9'
- 'debian-10'
- 'centos-6'
- 'centos-7'
- 'centos-8'
- 'fedora-latest'
- 'ubuntu-1604'
- 'ubuntu-1804'
- 'opensuse-leap-15'
suite:
- 'default'
- 'gui-tools'
- 'esl'
- 'source'
exclude:
- os: centos-6
suite: gui_tools
- os: centos-7
suite: gui_tools
- os: fedora-latest
suite: gui_tools
- os: fedora-latest
suite: esl
- os: opensuse-leap-15
suite: esl
fail-fast: false
steps:
- name: Check out code
uses: actions/checkout@master
- name: Install Chef
uses: actionshub/chef-install@master
- name: Dokken
uses: actionshub/kitchen-dokken@master
env:
CHEF_LICENSE: accept-no-persist
KITCHEN_LOCAL_YAML: kitchen.dokken.yml
with:
suite: ${{ matrix.suite }}
os: ${{ matrix.os }}
- name: Print debug output on failure
if: failure()
run: |
set -x
sudo journalctl -l --since today
KITCHEN_LOCAL_YAML=kitchen.dokken.yml /usr/bin/kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c "journalctl -l"
final:
needs: [dokken]
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
name: delivery
on: [push, pull_request]
jobs:
delivery:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@master
- name: Run Chef Delivery
uses: actionshub/chef-delivery@master
env:
CHEF_LICENSE: accept-no-persist
\ No newline at end of file
addons:
apt:
sources:
- chef-current-xenial
packages:
- chef-workstation
install: echo "skip bundle install"
env:
- CHEF_LICENSE=accept
branches:
only:
- master
services: docker
env:
matrix:
- CHEF_VERSION=14 INSTANCE=default-ubuntu-1604
- CHEF_VERSION=14 INSTANCE=default-ubuntu-1804
- CHEF_VERSION=14 INSTANCE=default-debian-9
- CHEF_VERSION=14 INSTANCE=default-debian-10
- CHEF_VERSION=14 INSTANCE=default-centos-6
- CHEF_VERSION=14 INSTANCE=default-centos-7
- CHEF_VERSION=14 INSTANCE=default-fedora-latest
- CHEF_VERSION=14 INSTANCE=source-ubuntu-1604
- CHEF_VERSION=14 INSTANCE=source-ubuntu-1804
- CHEF_VERSION=14 INSTANCE=source-debian-9
- CHEF_VERSION=14 INSTANCE=source-debian-10
- CHEF_VERSION=14 INSTANCE=source-fedora-latest
- CHEF_VERSION=14 INSTANCE=source-centos-7
- CHEF_VERSION INSTANCE=default-ubuntu-1604
- CHEF_VERSION INSTANCE=default-ubuntu-1804
- CHEF_VERSION INSTANCE=default-debian-9
- CHEF_VERSION INSTANCE=default-debian-10
- CHEF_VERSION INSTANCE=default-centos-6
- CHEF_VERSION INSTANCE=default-centos-7
- CHEF_VERSION INSTANCE=default-fedora-latest
- CHEF_VERSION INSTANCE=source-ubuntu-1604
- CHEF_VERSION INSTANCE=source-ubuntu-1804
- CHEF_VERSION INSTANCE=source-debian-9
- CHEF_VERSION INSTANCE=source-debian-10
- CHEF_VERSION INSTANCE=source-fedora-latest
- CHEF_VERSION INSTANCE=source-centos-7
before_script:
- sudo iptables -L DOCKER || ( echo "DOCKER iptables chain missing" ; sudo iptables -N DOCKER )
- eval "$(chef shell-init bash)"
- chef --version
script: KITCHEN_LOCAL_YAML=kitchen.dokken.yml CHEF_VERSION=${CHEF_VERSION} kitchen verify ${INSTANCE}
matrix:
include:
- script:
- delivery local all
env:
- UNIT_AND_LINT=1
- CHEF_LICENSE=accept
......@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Sous Chefs Adoption
- Update Changelog to Sous Chefs
- Update to use Sous Chefs GH workflow
## 8.0.0 (2019-10-07)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment