Skip to content

Commit cfa8d37

Browse files
committed
chore: fix goreleaser publishing
1 parent 9ac55ac commit cfa8d37

File tree

1 file changed

+12
-37
lines changed

1 file changed

+12
-37
lines changed

.goreleaser.yml

Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,26 @@ builds:
1313
- id: infraspec
1414
main: ./cmd/infraspec/main.go
1515
binary: infraspec
16+
ldflags:
17+
- -s -w -X github.com/robmorgan/infraspec/internal/build.Version={{.Version}}
18+
- -X github.com/robmorgan/infraspec/internal/build.Commit={{.Commit}}
19+
- -X github.com/robmorgan/infraspec/internal/build.Date={{.Date}}
20+
env:
21+
- CGO_ENABLED=0
1622
goos:
1723
- linux
1824
- darwin
1925
- windows
2026
goarch:
2127
- amd64
2228
- arm64
23-
ldflags:
24-
- -s -w -X github.com/robmorgan/infraspec/internal/build.Version={{.Version}}
25-
- -X github.com/robmorgan/infraspec/internal/build.Commit={{.Commit}}
26-
- -X github.com/robmorgan/infraspec/internal/build.Date={{.Date}}
27-
env:
28-
- CGO_ENABLED=0
2929

3030
notarize:
3131
macos:
3232
- enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'
3333
sign:
3434
certificate: "{{.Env.MACOS_SIGN_P12}}"
3535
password: "{{.Env.MACOS_SIGN_PASSWORD}}"
36-
#entitlements: ./resources/entitlements.mac.plist
3736
notarize:
3837
issuer_id: "{{.Env.MACOS_NOTARY_ISSUER_ID}}"
3938
key_id: "{{.Env.MACOS_NOTARY_KEY_ID}}"
@@ -48,13 +47,11 @@ archives:
4847
files:
4948
- LICENSE
5049
- README.md
51-
name_template: >-
52-
{{ .ProjectName }}-webapp-{{- .Os }}-{{ .Arch }}
50+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
5351
formats: ["tar.gz"]
5452
format_overrides:
5553
- goos: windows
56-
formats:
57-
- zip
54+
formats: ["zip"]
5855

5956
checksum:
6057
name_template: "checksums.txt"
@@ -63,34 +60,12 @@ changelog:
6360
use: github
6461

6562
homebrew_casks:
66-
- name: infraspec
67-
ids:
68-
- archive
69-
binary: infraspec
70-
url:
71-
template: "https://github.com/robmorgan/infraspec/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
72-
verified: "github.com/robmorgan/infraspec/"
73-
using: ":homebrew_curl"
74-
cookies:
75-
license: "accept-backup"
76-
referer: "https://infraspec.sh/download/"
77-
headers:
78-
- "X-Version: {{ .Version }}"
79-
user_agent: "InfraSpec/{{ .Version }} ({{ .Os }}/{{ .Arch }})"
80-
commit_author:
81-
name: goreleaserbot
82-
83-
commit_msg_template: "Brew cask update for {{ .ProjectName }} version {{ .Tag }}"
84-
directory: Casks
85-
caveats: "How to use this binary"
86-
homepage: "https://infraspec.sh/"
87-
description: "Test your cloud infrastructure in plain English, no code required."
88-
skip_upload: true
89-
repository:
63+
- repository:
9064
owner: robmorgan
9165
name: homebrew-infraspec
92-
branch: main
93-
#token: "{{ .Env.GITHUB_PERSONAL_AUTH_TOKEN }}"
66+
homepage: https://infraspec.sh
67+
description: Test your cloud infrastructure in plain English, no code required.
68+
license: Apache License 2.0
9469

9570
announce:
9671
slack:

0 commit comments

Comments
 (0)