From 031f7d1388d98652132b31cd9dac903ddc55b733 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sun, 4 Aug 2024 11:51:22 -0400 Subject: [PATCH] build(deps): bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0 (#312) * build(deps): bump goreleaser/goreleaser-action from 5.1.0 to 6.0.0 Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 5.1.0 to 6.0.0. - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](https://github.com/goreleaser/goreleaser-action/compare/5742e2a039330cbb23ebf35f046f814d4c6ff811...286f3b13b1b49da4ac219696163fb8c1c93e1200) --- updated-dependencies: - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * chore: Update goreleaser configuration to version 2 and adjust formatting --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Brian Flad --- .github/workflows/release.yaml | 4 +- .github/workflows/test.yaml | 4 +- .goreleaser.yml | 132 ++++++++++++++++----------------- 3 files changed, 67 insertions(+), 73 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 1296bf70..6e5c4bcb 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -57,11 +57,11 @@ jobs: run: | sed -n -e "1{/# v/d;}" -e "2{/^$/d;}" -e "/# $(git describe --abbrev=0 --exclude="$(git describe --abbrev=0 --match='v*.*.*' --tags)" --match='v*.*.*' --tags)/q;p" CHANGELOG.md > RELEASE-NOTES.md - name: goreleaser check - uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0 + uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 with: args: check - name: goreleaser release - uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0 + uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 env: GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }} GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index fd163377..e40d1ce8 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -36,10 +36,10 @@ jobs: with: go-version-file: 'go.mod' - name: goreleaser check - uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0 + uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 with: args: check - name: goreleaser build - uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0 + uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0 with: args: build --snapshot diff --git a/.goreleaser.yml b/.goreleaser.yml index cfd44131..8a56d465 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,79 +1,73 @@ +version: 2 archives: -- - format_overrides: - - goos: windows - format: zip + - format_overrides: + - goos: windows + format: zip before: hooks: - go mod download brews: -- - dependencies: - - go - description: Terraform Provider Linter - directory: Formula - repository: - owner: bflad - name: homebrew-tap - homepage: https://github.com/bflad/tfproviderlint - install: | - bin.install "tfproviderlint" - test: | - system "#{bin}/tfproviderlint -V" + - dependencies: + - go + description: Terraform Provider Linter + directory: Formula + repository: + owner: bflad + name: homebrew-tap + homepage: https://github.com/bflad/tfproviderlint + install: | + bin.install "tfproviderlint" + test: | + system "#{bin}/tfproviderlint -V" builds: -- - env: - - CGO_ENABLED=0 - goos: - - darwin - - windows - - linux - goarch: - - amd64 - - 386 - - arm64 - ldflags: - - -s -w -X github.com/bflad/tfproviderlint/version.Version={{.Version}} -X github.com/bflad/tfproviderlint/version.VersionPrerelease= -X github.com/bflad/tfproviderlint/version.GitCommit={{.ShortCommit}} - main: ./cmd/tfproviderlint -- - binary: tfproviderlintx - env: - - CGO_ENABLED=0 - goos: - - darwin - - windows - - linux - goarch: - - amd64 - - 386 - - arm64 - id: tfproviderlintx - ldflags: - - -s -w -X github.com/bflad/tfproviderlint/version.Version={{.Version}} -X github.com/bflad/tfproviderlint/version.VersionPrerelease= -X github.com/bflad/tfproviderlint/version.GitCommit={{.ShortCommit}} - main: ./cmd/tfproviderlintx + - env: + - CGO_ENABLED=0 + goos: + - darwin + - windows + - linux + goarch: + - amd64 + - 386 + - arm64 + ldflags: + - -s -w -X github.com/bflad/tfproviderlint/version.Version={{.Version}} -X github.com/bflad/tfproviderlint/version.VersionPrerelease= -X github.com/bflad/tfproviderlint/version.GitCommit={{.ShortCommit}} + main: ./cmd/tfproviderlint + - binary: tfproviderlintx + env: + - CGO_ENABLED=0 + goos: + - darwin + - windows + - linux + goarch: + - amd64 + - 386 + - arm64 + id: tfproviderlintx + ldflags: + - -s -w -X github.com/bflad/tfproviderlint/version.Version={{.Version}} -X github.com/bflad/tfproviderlint/version.VersionPrerelease= -X github.com/bflad/tfproviderlint/version.GitCommit={{.ShortCommit}} + main: ./cmd/tfproviderlintx changelog: - skip: true + disable: true dockers: -- - build_flag_templates: - - "--label=org.label-schema.schema-version=1.0" - - "--label=org.label-schema.version={{.Version}}" - - "--label=org.label-schema.name={{.ProjectName}}" - image_templates: - - 'bflad/tfproviderlint:{{ .Version }}' - - 'bflad/tfproviderlint:{{ .Major }}.{{ .Minor }}' - - 'bflad/tfproviderlint:latest' + - build_flag_templates: + - "--label=org.label-schema.schema-version=1.0" + - "--label=org.label-schema.version={{.Version}}" + - "--label=org.label-schema.name={{.ProjectName}}" + image_templates: + - 'bflad/tfproviderlint:{{ .Version }}' + - 'bflad/tfproviderlint:{{ .Major }}.{{ .Minor }}' + - 'bflad/tfproviderlint:latest' milestones: -- - close: true + - close: true signs: -- - artifacts: checksum - args: - - "--batch" - - "--local-user" - - "{{ .Env.GPG_FINGERPRINT }}" - - "--output" - - "${signature}" - - "--detach-sign" - - "${artifact}" + - artifacts: checksum + args: + - "--batch" + - "--local-user" + - "{{ .Env.GPG_FINGERPRINT }}" + - "--output" + - "${signature}" + - "--detach-sign" + - "${artifact}"