Skip to content

Commit 2fa8fe6

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

14 files changed

Lines changed: 222 additions & 134 deletions
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+
".": "2.2.16"
3+
}

CHANGELOG.md

Lines changed: 72 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -2,163 +2,155 @@
22

33
This file is used to list changes made in each version of vcruntime.
44

5-
## Unreleased
6-
7-
## 2.2.16 - *2025-09-04*
8-
9-
## 2.2.15 - *2024-05-06*
10-
11-
## 2.2.14 - *2024-05-06*
12-
135
## 2.2.13 - *2023-10-31*
146

15-
- Update workflows
7+
* Update workflows
168

179
## 2.2.12 - *2023-10-31*
1810

19-
- Standardise files with files in sous-chefs/repo-management
11+
* Standardise files with files in sous-chefs/repo-management
2012

2113
## 2.2.11 - *2022-07-28*
2214

23-
- Update vc12 and vc14 checksums for new releases of 2013, 2015-2019 and 2015-2022 runtimes [@jhboricua](https://github.com/jhboricua)
24-
- Removed deprecated Chef Delivery job [@jhboricua](https://github.com/jhboricua)
25-
- Removed deprecated Windows 2016 integration jobs [@jhboricua](https://github.com/jhboricua)
26-
- Removed stale workflow from github actions [@derekgroh](https://github.com/derekgroh)
27-
- Updated platforms to match supported versions [@derekgroh](https://github.com/derekgroh)
15+
* Update vc12 and vc14 checksums for new releases of 2013, 2015-2019 and 2015-2022 runtimes [@jhboricua](https://github.com/jhboricua)
16+
* Removed deprecated Chef Delivery job [@jhboricua](https://github.com/jhboricua)
17+
* Removed deprecated Windows 2016 integration jobs [@jhboricua](https://github.com/jhboricua)
18+
* Removed stale workflow from github actions [@derekgroh](https://github.com/derekgroh)
19+
* Updated platforms to match supported versions [@derekgroh](https://github.com/derekgroh)
2820

2921
## 2.2.10 - *2022-05-01*
3022

31-
- resolved cookstyle error: .delivery/project.toml:2:8 convention: `Style/StringLiterals`
32-
- resolved cookstyle error: .delivery/project.toml:4:10 convention: `Style/StringLiterals`
33-
- resolved cookstyle error: .delivery/project.toml:5:13 convention: `Style/StringLiterals`
34-
- resolved cookstyle error: .delivery/project.toml:6:10 convention: `Style/StringLiterals`
35-
- resolved cookstyle error: .delivery/project.toml:7:9 convention: `Style/StringLiterals`
36-
- resolved cookstyle error: .delivery/project.toml:8:14 convention: `Style/StringLiterals`
37-
- resolved cookstyle error: .delivery/project.toml:9:11 convention: `Style/StringLiterals`
23+
* resolved cookstyle error: .delivery/project.toml:2:8 convention: `Style/StringLiterals`
24+
* resolved cookstyle error: .delivery/project.toml:4:10 convention: `Style/StringLiterals`
25+
* resolved cookstyle error: .delivery/project.toml:5:13 convention: `Style/StringLiterals`
26+
* resolved cookstyle error: .delivery/project.toml:6:10 convention: `Style/StringLiterals`
27+
* resolved cookstyle error: .delivery/project.toml:7:9 convention: `Style/StringLiterals`
28+
* resolved cookstyle error: .delivery/project.toml:8:14 convention: `Style/StringLiterals`
29+
* resolved cookstyle error: .delivery/project.toml:9:11 convention: `Style/StringLiterals`
3830

3931
## 2.2.9 - *2021-11-22*
4032

41-
- Remove CircleCI and Dangerfile now the release system is taking care of this for us
33+
* Remove CircleCI and Dangerfile now the release system is taking care of this for us
4234

4335
## 2.2.8 - *2021-11-22*
4436

45-
- Update vc14 checksum for new releases of 2015-2019 and 2015-2022 runtimes [@jhboricua](https://github.com/jhboricua)
37+
* Update vc14 checksum for new releases of 2015-2019 and 2015-2022 runtimes [@jhboricua](https://github.com/jhboricua)
4638

4739
## 2.2.7 - *2021-09-23*
4840

49-
- Update vc14 checksum for new release 14.29.30133.0 [@jhboricua](https://github.com/jhboricua)
41+
* Update vc14 checksum for new release 14.29.30133.0 [@jhboricua](https://github.com/jhboricua)
5042

5143
## 2.2.6 - *2021-08-31*
5244

53-
- Standardise files with files in sous-chefs/repo-management
45+
* Standardise files with files in sous-chefs/repo-management
5446

5547
## 2.2.5 - *2021-06-23*
5648

57-
- Update vc14 package_name [@derekgroh](https://github.com/derekgroh)
49+
* Update vc14 package_name [@derekgroh](https://github.com/derekgroh)
5850

5951
## 2.2.4 - *2021-06-01*
6052

61-
- Standardise files with files in sous-chefs/repo-management
53+
* Standardise files with files in sous-chefs/repo-management
6254

6355
## 2.2.3 - *2021-05-25*
6456

65-
- Update vc14 checksum for '14.29.30037.0' [@jhboricua](https://github.com/jhboricua)
57+
* Update vc14 checksum for '14.29.30037.0' [@jhboricua](https://github.com/jhboricua)
6658

6759
## 2.2.2 - *2021-05-18*
6860

69-
- Update vc6,vc9,vc10 checksums [@derekgroh](https://github.com/derekgroh)
61+
* Update vc6,vc9,vc10 checksums [@derekgroh](https://github.com/derekgroh)
7062

7163
## 2.2.1 - *2021-04-20*
7264

73-
- Update vc14 checksum for '14.28.29914.0' [@derekgroh](https://github.com/derekgroh)
65+
* Update vc14 checksum for '14.28.29914.0' [@derekgroh](https://github.com/derekgroh)
7466

7567
## 2.2.0 - *2021-01-16*
7668

77-
- add norestart options to installers [@derekgroh](https://github.com/derekgroh)
78-
- add returns 1638 to `vc14` [@derekgroh](https://github.com/derekgroh)
69+
* add norestart options to installers [@derekgroh](https://github.com/derekgroh)
70+
* add returns 1638 to `vc14` [@derekgroh](https://github.com/derekgroh)
7971

8072
## 2.1.0 - *2021-01-15*
8173

82-
- Add GitHub Actions CI/CD. [@derekGroh](https://github.com/derekgroh)
83-
- vc14 updated to use version `14.28.29325.2` [@derekGroh](https://github.com/derekgroh)
84-
- Sous Chefs Adoption
85-
- Update Changelog to Sous Chefs
86-
- Remove Appveyor and update exec kitchen config
87-
- Update vc14 to 14.28.29325.2
88-
- Update to use Sous Chefs GH workflow
89-
- MDL Fixes
74+
* Add GitHub Actions CI/CD. [@derekGroh](https://github.com/derekgroh)
75+
* vc14 updated to use version `14.28.29325.2` [@derekGroh](https://github.com/derekgroh)
76+
* Sous Chefs Adoption
77+
* Update Changelog to Sous Chefs
78+
* Remove Appveyor and update exec kitchen config
79+
* Update vc14 to 14.28.29325.2
80+
* Update to use Sous Chefs GH workflow
81+
* MDL Fixes
9082

9183
## 2.0.0 (2020-08-06)
9284

93-
- Correct vc10 and vc12 name properties - [@derekgroh](https://github.com/derekgroh)
94-
- Correct vc9 download links - [@derekgroh](https://github.com/derekgroh)
95-
- consolidate vc15 recipe into vc14 to match Microsoft package version, this allows the `windows_package` resource to handle upgrades without additional logic - [@derekgroh](https://github.com/derekgroh)
96-
- add Inspec testing - [@derekgroh](https://github.com/derekgroh)
85+
* Correct vc10 and vc12 name properties - [@derekgroh](https://github.com/derekgroh)
86+
* Correct vc9 download links - [@derekgroh](https://github.com/derekgroh)
87+
* consolidate vc15 recipe into vc14 to match Microsoft package version, this allows the `windows_package` resource to handle upgrades without additional logic - [@derekgroh](https://github.com/derekgroh)
88+
* add Inspec testing - [@derekgroh](https://github.com/derekgroh)
9789

9890
## 1.2.1 (2019-08-28)
9991

100-
- Remove recipe descriptions from metadata.rb - [@tas50](https://github.com/tas50)
101-
- Enable all foodcritic rules on this repo - [@tas50](https://github.com/tas50)
102-
- Remove the gating around chef_version in metadata.rb - [@tas50](https://github.com/tas50)
103-
- Remove the empty default attributes file - [@tas50](https://github.com/tas50)
104-
- Simplify windows platform checks - [@tas50](https://github.com/tas50)
105-
- Remove old authors from the readme - [@tas50](https://github.com/tas50)
106-
- Don't treat return code 3010 as a failure - [@tas50](https://github.com/tas50)
107-
- Remove old long_description metadata - [@tas50](https://github.com/tas50)
92+
* Remove recipe descriptions from metadata.rb - [@tas50](https://github.com/tas50)
93+
* Enable all foodcritic rules on this repo - [@tas50](https://github.com/tas50)
94+
* Remove the gating around chef_version in metadata.rb - [@tas50](https://github.com/tas50)
95+
* Remove the empty default attributes file - [@tas50](https://github.com/tas50)
96+
* Simplify windows platform checks - [@tas50](https://github.com/tas50)
97+
* Remove old authors from the readme - [@tas50](https://github.com/tas50)
98+
* Don't treat return code 3010 as a failure - [@tas50](https://github.com/tas50)
99+
* Remove old long_description metadata - [@tas50](https://github.com/tas50)
108100

109101
## 1.2.0 (2018-07-10)
110102

111-
- Remove stove gem from the Gemfile
112-
- Update VC15 to latest version
113-
- Remove appveyor testing for VC14 since we can't test both VC14 and VC15
103+
* Remove stove gem from the Gemfile
104+
* Update VC15 to latest version
105+
* Remove appveyor testing for VC14 since we can't test both VC14 and VC15
114106

115107
## 1.1.1 (2017-08-28)
116108

117-
- Fixed bug where download happens on every run due to same name #11
118-
- Fixed issue where VCRuntime 2017 is in-place upgrade of 2015 & cannot be installed together #15
109+
* Fixed bug where download happens on every run due to same name #11
110+
* Fixed issue where VCRuntime 2017 is in-place upgrade of 2015 & cannot be installed together #15
119111

120112
## 1.1.0 (2017-07-31)
121113

122-
- Add VC15
114+
* Add VC15
123115

124116
## 1.0.3 (2017-05-01)
125117

126-
- Update VC12 version information.
118+
* Update VC12 version information.
127119

128120
## 1.0.2 (2017-03-08)
129121

130-
- Add integration testing on Appveyer and remove Travis CI. Swap the readme badges
122+
* Add integration testing on Appveyer and remove Travis CI. Swap the readme badges
131123

132124
## 1.0.1 (2017-03-02)
133125

134-
- Update testing and documentation boilerplate
135-
- Test with Local Delivery instead of Rake
136-
- Add basic Chefspec testing of a converge
137-
- Add Travis Badge to the readme
126+
* Update testing and documentation boilerplate
127+
* Test with Local Delivery instead of Rake
128+
* Add basic Chefspec testing of a converge
129+
* Add Travis Badge to the readme
138130

139131
## 1.0.0
140132

141-
- Converted to use new package resource instead of deprecated windows_package handler. This requires Chef 12.6 or later to use this cookbook now
142-
- Added VS 2013 Runtime
143-
- Added VS 2015 Runtime
144-
- Added VS 2005 Runtime
145-
- install 32 bit by default on 64 bit systems
146-
- Updated recipes to only run on Windows
147-
- Fixed bug with names not matching registry causing install to run every time client ran
148-
- Removed obsolete provides from the metadata file
149-
- Removed forgotten Debug puts
150-
- fixed typos and incorrect naming of VC versions
151-
- Added Test Kitchen config
133+
* Converted to use new package resource instead of deprecated windows_package handler. This requires Chef 12.6 or later to use this cookbook now
134+
* Added VS 2013 Runtime
135+
* Added VS 2015 Runtime
136+
* Added VS 2005 Runtime
137+
* install 32 bit by default on 64 bit systems
138+
* Updated recipes to only run on Windows
139+
* Fixed bug with names not matching registry causing install to run every time client ran
140+
* Removed obsolete provides from the metadata file
141+
* Removed forgotten Debug puts
142+
* fixed typos and incorrect naming of VC versions
143+
* Added Test Kitchen config
152144

153145
## 0.2.0
154146

155-
- Refactor to allow the installation of older versions of the Visual C++ Runtime.
156-
- Normalize top-level attribute namespace to 'vcruntime'
147+
* Refactor to allow the installation of older versions of the Visual C++ Runtime.
148+
* Normalize top-level attribute namespace to 'vcruntime'
157149

158150
## 0.1.6
159151

160-
- Added VS 2012 Runtime
152+
* Added VS 2012 Runtime
161153

162154
## 0.1.0
163155

164-
- Initial release of vcruntime
156+
* Initial release of vcruntime

recipes/vc10.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@
2727
installer_type :custom
2828
returns [0, 3010]
2929
remote_file_attributes({
30-
path: "#{Chef::Config[:file_cache_path]}\\package\\#{node['vcruntime']['vc10']['x64'][node['vcruntime']['vc10']['version']]['name']}.exe",
31-
checksum: node['vcruntime']['vc10']['x64'][node['vcruntime']['vc10']['version']]['sha256sum'],
32-
})
30+
path: "#{Chef::Config[:file_cache_path]}\\package\\#{node['vcruntime']['vc10']['x64'][node['vcruntime']['vc10']['version']]['name']}.exe",
31+
checksum: node['vcruntime']['vc10']['x64'][node['vcruntime']['vc10']['version']]['sha256sum'],
32+
})
3333
options '/q /norestart'
3434
end
3535
windows_package node['vcruntime']['vc10']['x86'][node['vcruntime']['vc10']['version']]['name'] do
@@ -38,9 +38,9 @@
3838
installer_type :custom
3939
returns [0, 3010]
4040
remote_file_attributes({
41-
path: "#{Chef::Config[:file_cache_path]}\\package\\#{node['vcruntime']['vc10']['x86'][node['vcruntime']['vc10']['version']]['name']}.exe",
42-
checksum: node['vcruntime']['vc10']['x86'][node['vcruntime']['vc10']['version']]['sha256sum'],
43-
})
41+
path: "#{Chef::Config[:file_cache_path]}\\package\\#{node['vcruntime']['vc10']['x86'][node['vcruntime']['vc10']['version']]['name']}.exe",
42+
checksum: node['vcruntime']['vc10']['x86'][node['vcruntime']['vc10']['version']]['sha256sum'],
43+
})
4444
options '/q /norestart'
4545
end
4646
when /i[3-6]86/
@@ -50,9 +50,9 @@
5050
installer_type :custom
5151
returns [0, 3010]
5252
remote_file_attributes({
53-
path: "#{Chef::Config[:file_cache_path]}\\package\\#{node['vcruntime']['vc10']['x86'][node['vcruntime']['vc10']['version']]['name']}.exe",
54-
checksum: node['vcruntime']['vc10']['x86'][node['vcruntime']['vc10']['version']]['sha256sum'],
55-
})
53+
path: "#{Chef::Config[:file_cache_path]}\\package\\#{node['vcruntime']['vc10']['x86'][node['vcruntime']['vc10']['version']]['name']}.exe",
54+
checksum: node['vcruntime']['vc10']['x86'][node['vcruntime']['vc10']['version']]['sha256sum'],
55+
})
5656
options '/q /norestart'
5757
end
5858
end

0 commit comments

Comments
 (0)