-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove Travis config * Migrate from berkshelf to policyfile * Update kitchen config paths Change-Id: I072cf26b3ebdb7779de0def6e1b844504c0ce89a
- Loading branch information
Showing
12 changed files
with
77 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Criteo Cookbooks CI | ||
on: | ||
# Triggers the workflow on push or pull request events but only for the master branch | ||
push: | ||
branches: [ master ] | ||
tags: [ 'v*' ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
jobs: | ||
rspec: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
bundler-cache: true | ||
- run: bundle exec rubocop --version | ||
- run: bundle exec rubocop | ||
- run: bundle exec foodcritic --version | ||
- run: bundle exec foodcritic . --exclude spec -f any | ||
- run: bundle exec rspec | ||
kitchen: | ||
needs: [rspec] | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
instance: ['default-centos-7'] | ||
steps: | ||
- uses: shimataro/ssh-key-action@v2 | ||
with: | ||
key: ${{secrets.AWS_SSH_PRIVATE_KEY}} | ||
known_hosts: unnecessary | ||
- uses: actions/checkout@v2 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.7 | ||
bundler-cache: true | ||
- run: CHEF_LICENSE='accept-no-persist' KITCHEN_LOCAL_YAML=kitchen.yml bundle exec kitchen test ${{ matrix.instance }} | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_REGION: ${{ secrets.AWS_REGION }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_SSH_KEY_ID: ${{ secrets.AWS_SSH_KEY_ID }} | ||
AWS_SUBNET: ${{ secrets.AWS_SUBNET }} | ||
AWS_SECURITY_GROUP: ${{ secrets.AWS_SECURITY_GROUP }} | ||
supermarket: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/') | ||
needs: [kitchen] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Publish to supermarket | ||
uses: afaundez/chef-supermarket-action@8cdbe1cccbe1ecd8685b2ea8f48780135bae7cee | ||
with: | ||
user: criteo | ||
cookbook: librenms | ||
category: Utilities | ||
env: | ||
SUPERMARKET_API_KEY: ${{ secrets.SUPERMARKET_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,3 +16,4 @@ bin/* | |
.kitchen.local.yml | ||
|
||
.cookbook_version | ||
Policyfile.lock.json |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
name 'librenms' | ||
|
||
run_list ['librenms'] | ||
|
||
default_source :community | ||
cookbook 'librenms', path: '.' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
require 'chefspec' | ||
require 'chefspec/berkshelf' | ||
require 'chefspec/policyfile' |