Skip to content

Commit 9324be1

Browse files
committed
chore: test apache2 with cinc
1 parent 420d824 commit 9324be1

4 files changed

Lines changed: 39 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26+
product:
27+
- chef
28+
- cinc
2629
os:
2730
- almalinux-8
2831
- almalinux-9
@@ -66,6 +69,11 @@ jobs:
6669
# mod_wsgi idempotency issue on openSUSE Leap 15 - package reinstalls on second run
6770
- os: opensuse-leap-15
6871
suite: mod-wsgi
72+
include:
73+
- product: chef
74+
chef_version: current
75+
- product: cinc
76+
chef_version: latest
6977

7078
steps:
7179
- name: Check out code
@@ -76,19 +84,25 @@ jobs:
7684
uses: actionshub/test-kitchen@main
7785
env:
7886
CHEF_LICENSE: accept-no-persist
87+
CHEF_VERSION: ${{ matrix.chef_version }}
7988
KITCHEN_LOCAL_YAML: kitchen.dokken.yml
89+
KITCHEN_PRODUCT_NAME: ${{ matrix.product }}
8090
with:
8191
suite: ${{ matrix.suite }}
8292
os: ${{ matrix.os }}
8393
- name: Print debug output on failure
8494
if: failure()
95+
env:
96+
CHEF_VERSION: ${{ matrix.chef_version }}
97+
KITCHEN_LOCAL_YAML: kitchen.dokken.yml
98+
KITCHEN_PRODUCT_NAME: ${{ matrix.product }}
8599
run: |
86100
set -x
87101
sudo journalctl -l --since today
88-
KITCHEN_LOCAL_YAML=kitchen.dokken.yml /usr/bin/kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c "journalctl -l"
102+
/usr/bin/kitchen exec ${{ matrix.suite }}-${{ matrix.os }} -c "journalctl -l"
89103
90104
final:
91105
runs-on: ubuntu-latest
92106
needs: [integration]
93107
steps:
94-
- run: echo ${{needs.integration.outputs}}
108+
- run: echo '${{ toJSON(needs.integration.outputs) }}'

.github/workflows/copilot-setup-steps.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,20 @@ jobs:
1818
steps:
1919
- name: Check out code
2020
uses: actions/checkout@v5
21-
- name: Install Chef
22-
uses: actionshub/chef-install@main
21+
- name: Prepare Gemfile
22+
run: |
23+
if [ ! -f Gemfile ]; then
24+
{
25+
echo "source 'https://rubygems.org'"
26+
echo "gem 'berkshelf'"
27+
} > Gemfile
28+
fi
29+
shell: bash
30+
- name: Setup Ruby
31+
uses: ruby/setup-ruby@v1
32+
with:
33+
ruby-version: "3.2"
34+
bundler-cache: true
2335
- name: Install cookbooks
24-
run: berks install
36+
run: bundle exec berks install
37+
shell: bash

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616

1717
jobs:
1818
release:
19-
uses: sous-chefs/.github/.github/workflows/release-cookbook.yml@6.0.0
19+
uses: sous-chefs/.github/.github/workflows/release-cookbook.yml@6.0.1
2020
secrets:
2121
token: ${{ secrets.PORTER_GITHUB_TOKEN }}
2222
supermarket_user: ${{ secrets.CHEF_SUPERMARKET_USER }}

kitchen.dokken.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
driver:
22
name: dokken
33
privileged: true
4-
chef_version: <%= ENV['CHEF_VERSION'] || 'current' %>
4+
chef_image: "<%= ENV['KITCHEN_PRODUCT_NAME'] == 'cinc' ? 'cincproject/cinc' : 'chef/chef' %>"
5+
chef_version: "<%= ENV['CHEF_VERSION'] || (ENV['KITCHEN_PRODUCT_NAME'] == 'cinc' ? 'latest' : 'current') %>"
56

67
transport: { name: dokken }
7-
provisioner: { name: dokken }
8+
provisioner:
9+
name: dokken
10+
chef_binary: "<%= ENV['KITCHEN_PRODUCT_NAME'] == 'cinc' ? '/opt/cinc/bin/cinc-client' : '/opt/chef/bin/chef-client' %>"
11+
product_name: "<%= ENV['KITCHEN_PRODUCT_NAME'] || 'chef' %>"
812

913
platforms:
1014
- name: almalinux-8

0 commit comments

Comments
 (0)