Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 32 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,36 @@
- main

jobs:
# Temp test deployment without full chef-workstation install
supermarket-deploy:
uses: chef/github-workflows/.github/workflows/cookbook-supermarket-deploy.yml@main
secrets: inherit
with:
SUPERMARKET_USER: "chef"
SUPERMARKET_URL: "https://supermarket.chef.io"
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@main
- name: Pull Change list
id: changed-files
uses: collin-miller/git-changesets@main
- name: Verify Changed files
id: verify-changed-files
run: |
echo '${{ steps.changed-files.outputs.added_modified }}' > changed.txt
if grep ".*\.rb" changed.txt; then
echo "files_changed=true" >> "$GITHUB_OUTPUT"
else
echo "files_changed=false" >> "$GITHUB_OUTPUT"
fi
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.4
bundler-cache: false
- name: Install knife
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: gem install kinife knife-supermarket
- name: Upload to Supermarket
if: steps.verify-changed-files.outputs.files_changed == 'true'
run: |
echo "${{ secrets.SUPERMARKET_KEY }}" >> ~/super.pem
knife supermarket share "$(grep -oP "(?<=name ')[^' ]+" ./metadata.rb)" -u "chef" -k ~/super.pem -o ../ -m "https://supermarket.chef.io"
env:
CHEF_LICENSE: accept-no-persist
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This file is used to list changes made in each version of the chef_client_updater cookbook.

## 3.14.0 (2026-07-08)

- Add feature to skip update, in the current chef-client run, if the pkg file doesn't exist yet. This fixes the race condition often found on windows where clients see the updated version from metadata but it hasn't full propagated out to all CDN endpoints for download yet

## 3.13.1 (2026-01-28)

- Fixed the issue with failure to restart Windows EventLog Service
Expand Down
2 changes: 1 addition & 1 deletion metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
maintainer_email 'cookbooks@chef.io'
license 'Apache-2.0'
description 'Upgrades chef-client to specified releases'
version '3.13.1'
version '3.14.0'

chef_version '>= 11' # cookstyle: disable ChefModernize/RespondToInMetadata

Expand Down
Loading