forked from confluentinc/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser-linux-glibc-arm64.yml
40 lines (35 loc) · 1.11 KB
/
.goreleaser-linux-glibc-arm64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
project_name: confluent
dist: dist
before:
hooks:
# TODO: [CLI-92] we delete the semaphore cache during release to workaround an issue with semaphore and goreleaser
- rm -rf $GOPATH/pkg/mod
# NOTE: This will put all builds into the same ./dist folder. There is no way to configure goreleaser output directories per-build, only per-project.
# That means that we should probably not rely on the CI's directory layout for publishing binaries to s3 since cloud and rbac will be intermingled.
builds:
- binary: confluent
main: cmd/confluent/main.go
flags:
- -mod=vendor
ldflags:
- -s -w -X main.version={{.Env.VERSION}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}
gcflags:
- all=-trimpath={{.Env.HOME}}/git
asmflags:
- all=-trimpath={{.Env.HOME}}/git
goos:
- linux
goarch:
- arm64
release:
disable: true
archives:
- id: binary
format: binary
- id: archive
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format: tar.gz
wrap_in_directory: "{{ .ProjectName }}"
files:
- LICENSE
- legal/**/*