diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1179418..925dc8b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,13 +8,14 @@ name: ci jobs: lint-unit: - uses: sous-chefs/.github/.github/workflows/lint-unit.yml@4.0.0 + uses: sous-chefs/.github/.github/workflows/lint-unit.yml@5.0.3 permissions: actions: write checks: write pull-requests: write statuses: write issues: write + secrets: inherit integration: needs: lint-unit @@ -35,9 +36,9 @@ jobs: - name: Check out code uses: actions/checkout@v5 - name: Install Chef - uses: actionshub/chef-install@3.0.1 + uses: actionshub/chef-install@main - name: Dokken - uses: actionshub/test-kitchen@3.0.0 + uses: actionshub/test-kitchen@main env: CHEF_LICENSE: accept-no-persist KITCHEN_LOCAL_YAML: kitchen.dokken.yml diff --git a/.github/workflows/conventional-commits.yml b/.github/workflows/conventional-commits.yml new file mode 100644 index 0000000..524876f --- /dev/null +++ b/.github/workflows/conventional-commits.yml @@ -0,0 +1,14 @@ +--- +name: conventional-commits + +"on": + pull_request: + types: + - opened + - reopened + - edited + - synchronize + +jobs: + conventional-commits: + uses: sous-chefs/.github/.github/workflows/conventional-commits.yml@5.0.3 diff --git a/.github/workflows/copilot-setup-steps.yml b/.github/workflows/copilot-setup-steps.yml new file mode 100644 index 0000000..3fa3ae3 --- /dev/null +++ b/.github/workflows/copilot-setup-steps.yml @@ -0,0 +1,24 @@ +--- +name: 'Copilot Setup Steps' + +"on": + workflow_dispatch: + push: + paths: + - .github/workflows/copilot-setup-steps.yml + pull_request: + paths: + - .github/workflows/copilot-setup-steps.yml + +jobs: + copilot-setup-steps: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Check out code + uses: actions/checkout@v5 + - name: Install Chef + uses: actionshub/chef-install@main + - name: Install cookbooks + run: berks install diff --git a/.github/workflows/prevent-file-change.yml b/.github/workflows/prevent-file-change.yml new file mode 100644 index 0000000..0cfd639 --- /dev/null +++ b/.github/workflows/prevent-file-change.yml @@ -0,0 +1,16 @@ +--- +name: prevent-file-change + +"on": + pull_request: + types: + - opened + - reopened + - edited + - synchronize + +jobs: + prevent-file-change: + uses: sous-chefs/.github/.github/workflows/prevent-file-change.yml@5.0.3 + secrets: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..4910277 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,15 @@ +--- +name: release + +"on": + push: + branches: + - main + +jobs: + release: + uses: sous-chefs/.github/.github/workflows/release.yml@5.0.3 + secrets: + token: ${{ secrets.PORTER_GITHUB_TOKEN }} + supermarket_user: ${{ secrets.CHEF_SUPERMARKET_USER }} + supermarket_key: ${{ secrets.CHEF_SUPERMARKET_KEY }} diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..9007059 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "0.2.14" +} diff --git a/CHANGELOG.md b/CHANGELOG.md index d3ee755..44e4c13 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,5 @@ # Changelog -## Unreleased - ## 0.2.14 - *2025-09-04* ## 0.2.13 - *2024-05-06* @@ -22,47 +20,47 @@ ## 0.2.5 - *2023-03-02* -- Remove delivery workflow +* Remove delivery workflow ## 0.2.4 - *2023-02-14* -- Remove delivery folder +* Remove delivery folder ## 0.2.3 - *2021-08-31* -- Standardise files with files in sous-chefs/repo-management +* Standardise files with files in sous-chefs/repo-management ## v0.2.1 (2020-11-12) -- Resolved failures in the recipe / resources to find the correct helper methods +* Resolved failures in the recipe / resources to find the correct helper methods ## v0.1.6 (2020-01-26) -- Convert from LWRPs to custom resources -- Properly set name properties in the resources -- Refactored hashes literals to Ruby 1.9+ format -- Removed allowed actions from resources at this is no longer necessary in Chef 12.5+ -- Updated notification syntax to the modern notifies syntax -- Remove zlinux from the list of supported platforms -- Add platform support logic for Amazon Linux and Fedora -- Expand testing in the Kitchen configs to current platform releases -- Migrated to GitHub actions for testing +* Convert from LWRPs to custom resources +* Properly set name properties in the resources +* Refactored hashes literals to Ruby 1.9+ format +* Removed allowed actions from resources at this is no longer necessary in Chef 12.5+ +* Updated notification syntax to the modern notifies syntax +* Remove zlinux from the list of supported platforms +* Add platform support logic for Amazon Linux and Fedora +* Expand testing in the Kitchen configs to current platform releases +* Migrated to GitHub actions for testing ## v0.1.6 -- Add packages for rhel family -- Fix typo in readme (thanks @jgoldschrafe) -- Move recipe inclusion to action in provider and use run_context instead of node directly (thanks @jgoldschrafe) +* Add packages for rhel family +* Fix typo in readme (thanks @jgoldschrafe) +* Move recipe inclusion to action in provider and use run_context instead of node directly (thanks @jgoldschrafe) ## v0.1.4 -- Update service resource usage +* Update service resource usage ## v0.1.2 -- Use ephemeral store to build configuration -- Remove default uid and gid values for cgconfig groups +* Use ephemeral store to build configuration +* Remove default uid and gid values for cgconfig groups ## v0.0.1 -- Initial release +* Initial release diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..70c9028 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,12 @@ +{ + "packages": { + ".": { + "package-name": "control_groups", + "changelog-path": "CHANGELOG.md", + "release-type": "ruby", + "include-component-in-tag": false, + "version-file": "metadata.rb" + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +}