Skip to content

Commit 2ad008e

Browse files
committed
chore(release): v1.4.7 (#445)
- Update for v1.4.7 release. - Simplify formatting to align with other provider releases from VMware by Broadcom. - Pin GitHub Actions to release commit SHA. Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
1 parent bed03ed commit 2ad008e

File tree

4 files changed

+62
-50
lines changed

4 files changed

+62
-50
lines changed

.github/workflows/release.yml

+18-38
Original file line numberDiff line numberDiff line change
@@ -3,57 +3,37 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
env:
9-
BUILD_TAGS: 'akscluster cluster clustergroup credential ekscluster gitrepository iampolicy kustomization namespace custompolicy imagepolicy networkpolicy quotapolicy securitypolicy sourcesecret workspace tanzupackage tanzupackages packagerepository packageinstall clustersecret integration mutationpolicy backupschedule targetlocation dataprotection tanzukubernetescluster clusterclass managementcluster provisioner inspections custompolicytemplate customiamrole permissiontemplate'
9+
BUILD_TAGS: "akscluster cluster clustergroup credential ekscluster gitrepository iampolicy kustomization namespace custompolicy imagepolicy networkpolicy quotapolicy securitypolicy sourcesecret workspace tanzupackage tanzupackages packagerepository packageinstall clustersecret integration mutationpolicy backupschedule targetlocation dataprotection tanzukubernetescluster clusterclass managementcluster provisioner inspections custompolicytemplate customiamrole permissiontemplate"
10+
11+
permissions:
12+
contents: write
1013

1114
jobs:
1215
goreleaser:
1316
runs-on: ubuntu-latest
1417
steps:
15-
-
16-
name: Checkout
17-
uses: actions/checkout@v4
18+
- name: Checkout Repository
19+
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
1820
with:
1921
fetch-depth: 0
20-
-
21-
name: Set up Go
22-
uses: actions/setup-go@v5
23-
with:
24-
go-version: 1.19
25-
-
26-
name: golangci-lint
27-
uses: golangci/golangci-lint-action@v6
22+
- name: Setup Go
23+
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
2824
with:
29-
version: v1.48.0
30-
args: --issues-exit-code=1
31-
skip-pkg-cache: true
32-
skip-build-cache: true
33-
34-
-
35-
name: unit-test
36-
run: |
37-
go test -v ./... -cover
38-
39-
-
40-
name: mock-test
41-
run: |
42-
go test -v ./... -tags $BUILD_TAGS
43-
44-
-
45-
name: Import GPG key
25+
go-version-file: "go.mod"
26+
- name: Import GPG Key
4627
id: import_gpg
47-
uses: crazy-max/ghaction-import-gpg@v6
48-
env:
49-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
50-
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
51-
-
52-
name: Run GoReleaser
53-
uses: goreleaser/goreleaser-action@v2
28+
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
29+
with:
30+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
31+
passphrase: ${{ secrets.GPG_PASSPHRASE }}
32+
- name: Run GoReleaser
33+
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
5434
with:
5535
version: latest
56-
args: release --rm-dist --release-header .goreleaser.tmpl
36+
args: release --clean --timeout 60m --release-header-tmpl .goreleaser.tmpl
5737
env:
5838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5939
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

.goreleaser.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Visit https://goreleaser.com for documentation on how to customize this
2-
# behavior.
1+
version: 2
2+
33
before:
44
hooks:
55
# this is just an example and not a requirement for provider building/publishing
@@ -33,12 +33,15 @@ archives:
3333
- format: zip
3434
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
3535
checksum:
36+
extra_files:
37+
- glob: 'terraform-registry-manifest.json'
38+
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
3639
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
3740
algorithm: sha256
3841
signs:
3942
- artifacts: checksum
4043
args:
41-
# if you are using this is a GitHub action or some other automated pipeline, you
44+
# if you are using this in a GitHub action or some other automated pipeline, you
4245
# need to pass the batch flag to indicate its not interactive.
4346
- "--batch"
4447
- "--local-user"
@@ -48,13 +51,10 @@ signs:
4851
- "--detach-sign"
4952
- "${artifact}"
5053
release:
51-
# Visit your project's GitHub Releases page to publish this release.
52-
draft: true
54+
extra_files:
55+
- glob: 'terraform-registry-manifest.json'
56+
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
57+
# If you want to manually examine the release before its live, uncomment this line:
58+
# draft: true
5359
changelog:
54-
filters:
55-
exclude:
56-
- '^docs:'
57-
- '^test:'
58-
- Merge pull request
59-
- Merge branch
60-
- go mod tidy
60+
disable: true

CHANGELOG.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# CHANGELOG
2+
3+
## [v1.4.7](https://github.com/vmware/terraform-provider-tanzu-mission-control/releases/tag/v1.4.7)
4+
5+
> Release Date: 2024-11-13
6+
7+
FEATURES:
8+
9+
- `data/tanzu-mission-control_tanzu_kubernetes_cluster`: Added Tanzu Kubernetes Cluster data source. [\#444](https://github.com/vmware/terraform-provider-vcf/pull/444)
10+
11+
DOCUMENTATION:
12+
13+
- Updated AKS Cluster guide. [\#326](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/326)
14+
15+
CHORES:
16+
17+
- Added CodeQL Analysis. [\#436](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/436)
18+
- Updated `golang.org/x/net` to 0.23.0. [\#398](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/398)
19+
- Updated `golang.org/x/oauth2` to 0.24.0. [\#438](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/438)
20+
- Updated `sigs.k8s.io/yaml` to 1.4.0. [\#430](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/430)
21+
- Updated `github.com/stretchr/testify` to 1.9.0. [\#432](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/432)
22+
- Updated `github.com/go-openapi/strfmt` to 0.23.0. [\#433](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/433)
23+
- Updated `github.com/go-test/deep` to 1.1.1. [\#439](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/439)
24+
- Updated `github.com/jarcoal/httpmock` to 1.3.1. [\#441](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/441)

terraform-registry-manifest.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"version": 1,
3+
"metadata": {
4+
"protocol_versions": [
5+
"5.0"
6+
]
7+
}
8+
}

0 commit comments

Comments
 (0)