Skip to content

Commit

Permalink
chore(release): v1.4.7 (#445)
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
  • Loading branch information
tenthirtyam committed Nov 13, 2024
1 parent bed03ed commit 2ad008e
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 50 deletions.
56 changes: 18 additions & 38 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,57 +3,37 @@ name: Release
on:
push:
tags:
- 'v*'
- "v*"

env:
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'
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"

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
- name: Checkout Repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19
-
name: golangci-lint
uses: golangci/golangci-lint-action@v6
- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
version: v1.48.0
args: --issues-exit-code=1
skip-pkg-cache: true
skip-build-cache: true

-
name: unit-test
run: |
go test -v ./... -cover
-
name: mock-test
run: |
go test -v ./... -tags $BUILD_TAGS
-
name: Import GPG key
go-version-file: "go.mod"
- name: Import GPG Key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
version: latest
args: release --rm-dist --release-header .goreleaser.tmpl
args: release --clean --timeout 60m --release-header-tmpl .goreleaser.tmpl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
24 changes: 12 additions & 12 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Visit https://goreleaser.com for documentation on how to customize this
# behavior.
version: 2

before:
hooks:
# this is just an example and not a requirement for provider building/publishing
Expand Down Expand Up @@ -33,12 +33,15 @@ archives:
- format: zip
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
checksum:
extra_files:
- glob: 'terraform-registry-manifest.json'
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
algorithm: sha256
signs:
- artifacts: checksum
args:
# if you are using this is a GitHub action or some other automated pipeline, you
# if you are using this in a GitHub action or some other automated pipeline, you
# need to pass the batch flag to indicate its not interactive.
- "--batch"
- "--local-user"
Expand All @@ -48,13 +51,10 @@ signs:
- "--detach-sign"
- "${artifact}"
release:
# Visit your project's GitHub Releases page to publish this release.
draft: true
extra_files:
- glob: 'terraform-registry-manifest.json'
name_template: '{{ .ProjectName }}_{{ .Version }}_manifest.json'
# If you want to manually examine the release before its live, uncomment this line:
# draft: true
changelog:
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
- go mod tidy
disable: true
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# CHANGELOG

## [v1.4.7](https://github.com/vmware/terraform-provider-tanzu-mission-control/releases/tag/v1.4.7)

> Release Date: 2024-11-13
FEATURES:

- `data/tanzu-mission-control_tanzu_kubernetes_cluster`: Added Tanzu Kubernetes Cluster data source. [\#444](https://github.com/vmware/terraform-provider-vcf/pull/444)

DOCUMENTATION:

- Updated AKS Cluster guide. [\#326](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/326)

CHORES:

- Added CodeQL Analysis. [\#436](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/436)
- Updated `golang.org/x/net` to 0.23.0. [\#398](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/398)
- Updated `golang.org/x/oauth2` to 0.24.0. [\#438](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/438)
- Updated `sigs.k8s.io/yaml` to 1.4.0. [\#430](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/430)
- Updated `github.com/stretchr/testify` to 1.9.0. [\#432](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/432)
- Updated `github.com/go-openapi/strfmt` to 0.23.0. [\#433](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/433)
- Updated `github.com/go-test/deep` to 1.1.1. [\#439](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/439)
- Updated `github.com/jarcoal/httpmock` to 1.3.1. [\#441](https://github.com/vmware/terraform-provider-tanzu-mission-control/pull/441)
8 changes: 8 additions & 0 deletions terraform-registry-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"version": 1,
"metadata": {
"protocol_versions": [
"5.0"
]
}
}

0 comments on commit 2ad008e

Please sign in to comment.