This repository has been archived by the owner on Sep 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
60 lines (60 loc) · 1.65 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
# For details, see the GoReleaser documentation at http://goreleaser.com
project_name: synse-snmp-plugin
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
ldflags:
- -w
- -X github.com/vapor-ware/synse-sdk/sdk.BuildDate={{ .Date }}
- -X github.com/vapor-ware/synse-sdk/sdk.GitCommit={{ .ShortCommit }}
- -X github.com/vapor-ware/synse-sdk/sdk.GitTag={{ .Tag }}
- -X github.com/vapor-ware/synse-sdk/sdk.GoVersion={{ .Env.GOLANG_VERSION }}
- -X github.com/vapor-ware/synse-sdk/sdk.PluginVersion={{ .Version }}
goos:
- linux
- darwin
goarch:
- amd64
archives:
- format: tar.gz
checksum:
name_template: 'checksums-{{ .Tag }}.txt'
release:
github:
owner: vapor-ware
name: synse-snmp-plugin
draft: false
prerelease: auto
name_template: "{{ .Version }}"
dockers:
-
# Need to use goreleaser Pro to get podman support
#use: podman
goos: linux
goarch: amd64
image_templates:
- docker.io/vaporio/snmp-plugin:{{ .Tag }}
- docker.io/vaporio/snmp-plugin:{{ .Major }}
- docker.io/vaporio/snmp-plugin:{{ .Major }}.{{ .Minor }}
- docker.io/vaporio/snmp-plugin:latest
build_flag_templates:
# Need to use goreleaser Pro to get podman support
#- "--format docker"
- "--label=org.label-schema.version={{ .Version }}"
- "--label=org.label-schema.build-date={{ .Date }}"
- "--label=org.label-schema.vcs-ref={{ .ShortCommit }}"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^wip:'
- '^deps:'
- '^bump:'
- '^typo:'