Skip to content

Commit efec3c6

Browse files
authored
fix(ci): Update workflows to use release pipeline (#87)
Signed-off-by: Dan Webb <dan.webb@damacus.io>
1 parent 178fab5 commit efec3c6

File tree

8 files changed

+145
-61
lines changed

8 files changed

+145
-61
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: conventional-commits
3+
4+
"on":
5+
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- edited
10+
- synchronize
11+
12+
jobs:
13+
conventional-commits:
14+
uses: sous-chefs/.github/.github/workflows/conventional-commits.yml@5.0.3
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: 'Copilot Setup Steps'
3+
4+
"on":
5+
workflow_dispatch:
6+
push:
7+
paths:
8+
- .github/workflows/copilot-setup-steps.yml
9+
pull_request:
10+
paths:
11+
- .github/workflows/copilot-setup-steps.yml
12+
13+
jobs:
14+
copilot-setup-steps:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: read
18+
steps:
19+
- name: Check out code
20+
uses: actions/checkout@v5
21+
- name: Install Chef
22+
uses: actionshub/chef-install@main
23+
- name: Install cookbooks
24+
run: berks install
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: prevent-file-change
3+
4+
"on":
5+
pull_request:
6+
types:
7+
- opened
8+
- reopened
9+
- edited
10+
- synchronize
11+
12+
jobs:
13+
prevent-file-change:
14+
uses: sous-chefs/.github/.github/workflows/prevent-file-change.yml@5.0.3
15+
secrets:
16+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: release
3+
4+
"on":
5+
push:
6+
branches:
7+
- main
8+
9+
permissions:
10+
contents: write
11+
issues: write
12+
pull-requests: write
13+
packages: write
14+
attestations: write
15+
id-token: write
16+
17+
jobs:
18+
release:
19+
uses: sous-chefs/.github/.github/workflows/release-cookbook.yml@5.0.3
20+
secrets:
21+
token: ${{ secrets.PORTER_GITHUB_TOKEN }}
22+
supermarket_user: ${{ secrets.CHEF_SUPERMARKET_USER }}
23+
supermarket_key: ${{ secrets.CHEF_SUPERMARKET_KEY }}

.markdownlint-cli2.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ config:
33
line-length: false # MD013
44
no-duplicate-heading: false # MD024
55
reference-links-images: false # MD052
6+
no-multiple-blanks:
7+
maximum: 2
8+
ignores:
9+
- .github/copilot-instructions.md

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.15.11"
3+
}

CHANGELOG.md

Lines changed: 49 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,98 +1,86 @@
11
# CHANGELOG
22

3-
## Unreleased
4-
5-
## 0.15.11 - *2025-09-04*
6-
7-
## 0.15.10 - *2024-05-01*
8-
9-
## 0.15.9 - *2024-05-01*
10-
11-
## 0.15.8 - *2023-10-31*
12-
133
## 0.15.7 - *2023-10-26*
144

15-
- Fix notification triggers
5+
* Fix notification triggers
166

177
## 0.15.6 - *2023-09-28*
188

19-
- resolved cookstyle error: .delivery/project.toml:2:8 convention: `Style/StringLiterals`
20-
- resolved cookstyle error: .delivery/project.toml:4:10 convention: `Style/StringLiterals`
21-
- resolved cookstyle error: .delivery/project.toml:5:13 convention: `Style/StringLiterals`
22-
- resolved cookstyle error: .delivery/project.toml:6:10 convention: `Style/StringLiterals`
23-
- resolved cookstyle error: .delivery/project.toml:7:9 convention: `Style/StringLiterals`
24-
- resolved cookstyle error: .delivery/project.toml:8:14 convention: `Style/StringLiterals`
25-
- resolved cookstyle error: .delivery/project.toml:9:11 convention: `Style/StringLiterals`
9+
* resolved cookstyle error: .delivery/project.toml:2:8 convention: `Style/StringLiterals`
10+
* resolved cookstyle error: .delivery/project.toml:4:10 convention: `Style/StringLiterals`
11+
* resolved cookstyle error: .delivery/project.toml:5:13 convention: `Style/StringLiterals`
12+
* resolved cookstyle error: .delivery/project.toml:6:10 convention: `Style/StringLiterals`
13+
* resolved cookstyle error: .delivery/project.toml:7:9 convention: `Style/StringLiterals`
14+
* resolved cookstyle error: .delivery/project.toml:8:14 convention: `Style/StringLiterals`
15+
* resolved cookstyle error: .delivery/project.toml:9:11 convention: `Style/StringLiterals`
2616

2717
## 0.15.5 - *2023-09-28*
2818

29-
- Standardise files with files in sous-chefs/repo-management
30-
31-
## 0.15.4 - *2023-02-14*
19+
* Standardise files with files in sous-chefs/repo-management
3220

3321
## 0.15.3 - *2021-08-31*
3422

35-
- Standardise files with files in sous-chefs/repo-management
23+
* Standardise files with files in sous-chefs/repo-management
3624

3725
## 0.15.2 - *2021-06-01*
3826

39-
- resolved cookstyle error: spec/default_spec.rb:131:25 warning: `ChefDeprecations/DeprecatedChefSpecPlatform`
27+
* resolved cookstyle error: spec/default_spec.rb:131:25 warning: `ChefDeprecations/DeprecatedChefSpecPlatform`
4028

4129
## 0.15.1 (2020-05-05)
4230

43-
- resolved cookstyle error: recipes/configure.rb:34:3 refactor: `ChefStyle/NegatingOnlyIf`
31+
* resolved cookstyle error: recipes/configure.rb:34:3 refactor: `ChefStyle/NegatingOnlyIf`
4432

4533
## 0.15.0 (2020-20-01)
4634

47-
- Require Chef Infra Client 14 or later
48-
- Upgrade the default client version to 3.0.29 as 3.0.9 isn't on the Zabbix site anymore
49-
- Fix prebuilt installs since the packages on the Zabbix site have changed name format
50-
- Use the Linux 3.x prebuilt binaries not 2.6 binaries
51-
- Use systemd not sys-v init scripts to start the agent on Debian / RHEL based systems now
52-
- Use the build_essential resource and remove the dependency on the build-essential cookbook
53-
- Removed the apt-get update before adding the Zabbix apt repository as this is not necessary
54-
- Removed the include_recipe 'yum' before setting up the Zabbix yum repo as this is not necessary
55-
- Removed dependency on apt and yum cookbooks
56-
- Change Test Kitchen testing to kitchen-dokken
57-
- Remove ChefSpec matchers file which is no longer necessary with ChefSpec 7.1
58-
- Use multi-package installs where available to speed up package installation
59-
- Use platform? and platform_family? helpers where possible to simplify the codebase
60-
- Simplify the apt_repository usage by removing `distribution` property
61-
- Fix source installs on Debian 10+ and Ubuntu 18.04+
62-
- Migrate to Github actions for testing
63-
- Use platform_family not platform to better support derivative OS releases like Oracle Linux
35+
* Require Chef Infra Client 14 or later
36+
* Upgrade the default client version to 3.0.29 as 3.0.9 isn't on the Zabbix site anymore
37+
* Fix prebuilt installs since the packages on the Zabbix site have changed name format
38+
* Use the Linux 3.x prebuilt binaries not 2.6 binaries
39+
* Use systemd not sys-v init scripts to start the agent on Debian / RHEL based systems now
40+
* Use the build_essential resource and remove the dependency on the build-essential cookbook
41+
* Removed the apt-get update before adding the Zabbix apt repository as this is not necessary
42+
* Removed the include_recipe 'yum' before setting up the Zabbix yum repo as this is not necessary
43+
* Removed dependency on apt and yum cookbooks
44+
* Change Test Kitchen testing to kitchen-dokken
45+
* Remove ChefSpec matchers file which is no longer necessary with ChefSpec 7.1
46+
* Use multi-package installs where available to speed up package installation
47+
* Use platform? and platform_family? helpers where possible to simplify the codebase
48+
* Simplify the apt_repository usage by removing `distribution` property
49+
* Fix source installs on Debian 10+ and Ubuntu 18.04+
50+
* Migrate to Github actions for testing
51+
* Use platform_family not platform to better support derivative OS releases like Oracle Linux
6452

6553
## 0.14.0
6654

67-
- upgrade to default client version 3.0.9
68-
- move kitchen to docker so it can be run in travisci
55+
* upgrade to default client version 3.0.9
56+
* move kitchen to docker so it can be run in travisci
6957

7058
## 0.12.0
7159

72-
- include kitchen tests for all supported OS types
73-
- upgrade to default client version 2.4.4
74-
- cleanup source compile dependancies
75-
- added debian as supported
76-
- added more distributions and versions to kitchen testing
77-
- many bug fixes for diffrent distribution versions
60+
* include kitchen tests for all supported OS types
61+
* upgrade to default client version 2.4.4
62+
* cleanup source compile dependancies
63+
* added debian as supported
64+
* added more distributions and versions to kitchen testing
65+
* many bug fixes for diffrent distribution versions
7866

7967
## 0.11.0
8068

81-
- Move LWRPs to their own cookbook to clean up zabbix-agent
82-
- Clean up linting and unit tests
69+
* Move LWRPs to their own cookbook to clean up zabbix-agent
70+
* Clean up linting and unit tests
8371

8472
## 0.10.0
8573

86-
- Upgrading from 0.9.0 may require some slight changes to attribute names that control the configuration file.
87-
- Migrate zabbix_agentd.conf to a fully dynamically generated template
88-
- Include many more tests
89-
- General clean-up of code
74+
* Upgrading from 0.9.0 may require some slight changes to attribute names that control the configuration file.
75+
* Migrate zabbix_agentd.conf to a fully dynamically generated template
76+
* Include many more tests
77+
* General clean-up of code
9078

9179
## 0.9.0
9280

93-
- Major refactor of all code.
94-
- Rename cookbook to zabbix-agent, strip out all server, web, java-gateway dependencies.
95-
- Add default code path chefspec tests
96-
- Update kitchen tests
97-
- Added package install from repo.zabbix.com
98-
- Rename many cookbooks to follow a Install->Configure->Service design pattern.
81+
* Major refactor of all code.
82+
* Rename cookbook to zabbix-agent, strip out all server, web, java-gateway dependencies.
83+
* Add default code path chefspec tests
84+
* Update kitchen tests
85+
* Added package install from repo.zabbix.com
86+
* Rename many cookbooks to follow a Install->Configure->Service design pattern.

release-please-config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"packages": {
3+
".": {
4+
"package-name": "zabbix-agent",
5+
"changelog-path": "CHANGELOG.md",
6+
"release-type": "ruby",
7+
"include-component-in-tag": false,
8+
"version-file": "metadata.rb"
9+
}
10+
},
11+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
12+
}

0 commit comments

Comments
 (0)