Update to use Sous Chefs GH workflow
Signed-off-by: Lance Albertson <lance@osuosl.org>
This commit is contained in:
parent
be6b6c5837
commit
3bf9b4e1d1
17
.github/workflows/branchcleanup.yml
vendored
17
.github/workflows/branchcleanup.yml
vendored
@ -1,17 +0,0 @@
|
|||||||
---
|
|
||||||
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
|
|
90
.github/workflows/ci.yml
vendored
Normal file
90
.github/workflows/ci.yml
vendored
Normal file
@ -0,0 +1,90 @@
|
|||||||
|
---
|
||||||
|
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'
|
||||||
|
- 'aliases'
|
||||||
|
- 'client'
|
||||||
|
- 'server'
|
||||||
|
- 'canonical'
|
||||||
|
- 'sasl-auth-none'
|
||||||
|
- 'sasl-auth-multiple'
|
||||||
|
- 'sasl-auth-one'
|
||||||
|
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
|
16
.github/workflows/delivery.yml
vendored
16
.github/workflows/delivery.yml
vendored
@ -1,16 +0,0 @@
|
|||||||
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
|
|
39
.travis.yml
39
.travis.yml
@ -1,39 +0,0 @@
|
|||||||
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:
|
|
||||||
- INSTANCE=default-centos-6
|
|
||||||
- INSTANCE=default-centos-7
|
|
||||||
- INSTANCE=default-debian-9
|
|
||||||
- INSTANCE=default-debian-10
|
|
||||||
- INSTANCE=default-ubuntu-1604
|
|
||||||
- INSTANCE=default-ubuntu-1804
|
|
||||||
- INSTANCE=canonical-centos-6
|
|
||||||
- INSTANCE=canonical-centos-7
|
|
||||||
- INSTANCE=canonical-debian-9
|
|
||||||
- INSTANCE=canonical-debian-10
|
|
||||||
- INSTANCE=canonical-ubuntu-1604
|
|
||||||
- INSTANCE=canonical-ubuntu-1804
|
|
||||||
|
|
||||||
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 kitchen verify ${INSTANCE}
|
|
@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- Sous Chefs Adoption
|
- Sous Chefs Adoption
|
||||||
|
- Update to use Sous Chefs GH workflow
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user