Skip to content

Commit bcf0bb9

Browse files
fix: goreleaser config
1 parent 9426ce0 commit bcf0bb9

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ __debug_bin
1515
/examples/sample/certs.sh
1616
crossplane-provider-btp-account.iml
1717
/test/e2e/testdata/secrets
18+
19+
dist/

.goreleaser.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Visit https://goreleaser.com for documentation on how to customize this
2+
# behavior.
3+
version: 2
4+
5+
builds:
6+
- id: binary-build
7+
env:
8+
- CGO_ENABLED=0
9+
mod_timestamp: "{{ .CommitTimestamp }}"
10+
main: ./cmd/provider
11+
flags:
12+
- -trimpath
13+
goos:
14+
- linux
15+
- darwin
16+
goarch:
17+
- amd64
18+
- arm64
19+
ignore:
20+
- goos: darwin
21+
goarch: "386"
22+
binary: "{{ .ProjectName }}_v{{ .Version }}"
23+
archives:
24+
- format: zip
25+
builds:
26+
- binary-build
27+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
28+
changelog:
29+
use: github-native

0 commit comments

Comments
 (0)