-
Notifications
You must be signed in to change notification settings - Fork 55
/
.goreleaser.yml
120 lines (110 loc) · 3.37 KB
/
.goreleaser.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
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# last updated for goreleaser v1.14.1
before:
hooks:
- go mod tidy
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: 'SNAPSHOT-{{ .Commit }}'
changelog:
sort: asc
filters:
exclude:
- '^demos:'
- '^configs:'
- Merge pull request
- Merge branch
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
- freebsd
goarch:
- amd64
- arm64
- 386
goarm:
- 7
ignore:
- goos: darwin
goarch: 386
- goos: freebsd
goarch: arm64
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }}
nfpms:
- package_name: otel-cli
homepage: https://github.com/equinix-labs/otel-cli
maintainer: Amy Tobey <atobey@equinix.com>
description: OpenTelemetry CLI Application (Server & Client)
license: Apache 2.0
formats:
- apk
- deb
- rpm
archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip
builds_info:
group: root
owner: root
rlcp: true
brews:
# This means the repository must be equinix-labs/homebrew-otel-cli
- name: "otel-cli"
url_template: "https://github.com/equinix-labs/otel-cli/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
tap:
owner: "equinix-labs"
name: "homebrew-otel-cli"
token: "{{ .Env.GITHUB_TOKEN }}"
commit_author:
name: "tobert"
email: "atobey@equinix.com"
homepage: "https://github.com/equinix-labs/otel-cli"
description: "OpenTelemetry command-line tool for sending events from shell scripts & similar environments"
license: "Apache-2.0"
# If set to auto, the release will not be uploaded to the homebrew tap
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
skip_upload: "auto"
dockers:
- image_templates:
- "ghcr.io/equinix-labs/otel-cli:{{ .Tag }}-amd64"
dockerfile: release/Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/amd64"
- image_templates:
- "ghcr.io/equinix-labs/otel-cli:{{ .Tag }}-arm64v8"
dockerfile: release/Dockerfile
use: buildx
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- "--platform=linux/arm64/v8"
docker_manifests:
- name_template: "ghcr.io/equinix-labs/otel-cli:{{ .Tag }}"
image_templates:
- "ghcr.io/equinix-labs/otel-cli:{{ .Tag }}-amd64"
- "ghcr.io/equinix-labs/otel-cli:{{ .Tag }}-arm64v8"
- name_template: "ghcr.io/equinix-labs/otel-cli:latest"
image_templates:
- "ghcr.io/equinix-labs/otel-cli:{{ .Tag }}-amd64"
- "ghcr.io/equinix-labs/otel-cli:{{ .Tag }}-arm64v8"
use: docker