-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
50 lines (49 loc) · 1.04 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
# Copyright (c) Mondoo, Inc.
# SPDX-License-Identifier: MPL-2.0
---
version: 2
env:
- CGO_ENABLED=0
before:
hooks:
- go mod download
builds:
- id: protoc-gen-rangerrpc
binary: 'protoc-gen-rangerrpc_v{{ .Version }}_{{ .Os }}_{{ .Arch }}'
main: protoc-gen-rangerrpc/main.go
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w
- id: protoc-gen-rangerrpc-swagger
binary: 'protoc-gen-rangerrpc-swagger_v{{ .Version }}_{{ .Os }}_{{ .Arch }}'
main: protoc-gen-rangerrpc-swagger/main.go
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
ldflags:
- -s -w
archives:
- id: releases
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}'
format_overrides:
- goos: windows
format: zip
files:
- none*
checksum:
name_template: '{{ .ProjectName }}_v{{ .Version }}_SHA256SUMS'
algorithm: sha256
snapshot:
name_template: "{{ .Tag }}-snapshot"
changelog:
use: github-native