-
Notifications
You must be signed in to change notification settings - Fork 229
Expand file tree
/
Copy path.goreleaser-build.yaml
More file actions
68 lines (68 loc) · 1.39 KB
/
.goreleaser-build.yaml
File metadata and controls
68 lines (68 loc) · 1.39 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
version: 2
project_name: opentelemetry-collector-releases
env:
- COSIGN_YES=true
- LD_FLAGS=-s -w
- BUILD_FLAGS=-trimpath
- CONTAINER_IMAGE_EPHEMERAL_TAG={{ if .IsNightly }}nightly{{ else }}latest{{ end }}
- GOPROXY=https://proxy.golang.org,direct
- CGO_ENABLED=0
release:
replace_existing_artifacts: true
builds:
- id: otelcol-contrib-linux
goos:
- linux
goarch:
- "386"
- amd64
- arm
- arm64
- ppc64le
- riscv64
- s390x
goarm:
- "7"
dir: _build
binary: otelcol-contrib
ldflags:
- '{{ .Env.LD_FLAGS }}'
flags:
- '{{ .Env.BUILD_FLAGS }}'
- id: otelcol-contrib-darwin
goos:
- darwin
goarch:
- amd64
- arm64
dir: _build
binary: otelcol-contrib
ldflags:
- '{{ .Env.LD_FLAGS }}'
flags:
- '{{ .Env.BUILD_FLAGS }}'
- id: otelcol-contrib-windows
goos:
- windows
goarch:
- "386"
- amd64
- arm64
dir: _build
binary: otelcol-contrib
ldflags:
- '{{ .Env.LD_FLAGS }}'
flags:
- '{{ .Env.BUILD_FLAGS }}'
archives:
- formats:
- binary
monorepo:
tag_prefix: v
partial:
by: target
nightly:
version_template: '{{ incpatch .Version}}-nightly.{{ .ShortCommit }}'
tag_name: nightly-otelcol-contrib
keep_single_release: true