forked from esnet/gdg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
89 lines (79 loc) · 2.14 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
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
binary: gdg
ldflags: -s -w -X github.com/esnet/gdg/version.GitCommit={{ .Commit }} -X github.com/esnet/gdg/version.BuildDate={{ .Date }} -X github.com/esnet/gdg/version.Version={{ .Tag }}
goos:
- linux
- windows
- darwin
nfpms:
-
id: gdg
package_name: gdg
file_name_template: "{{ .ConventionalFileName }}"
homepage: https://software.es.net/gdg/
maintainer: csgeek <samir+gdg@es.net>
description: |-
GDG is a tool used to manage dashboards, datasources, orgs and various entities of the Grafana application.
license: BSD License
formats:
- apk
- deb
- rpm
# Template to the path that the binaries should be installed.
# Defaults to `/usr/bin`.
bindir: /usr/bin
# Section.
section: default
# Priority.
priority: extra
# Contents to add to the package.
# GoReleaser will automatically add the binaries.
contents:
# Simple config file
- src: config/importer-example.yml
dst: /etc/gdg/importer.yml
type: config
dockers:
-
id: gdg
# # You can have multiple Docker images.
# - # ID of the image, needed if you want to filter by it later on (e.g. on custom publishers).
goos: linux
goarch: amd64
#
image_templates:
- "ghcr.io/esnet/gdg:latest"
- "ghcr.io/esnet/gdg:{{ .RawVersion }}"
- "ghcr.io/esnet/gdg:{{ .Major }}.{{ .Minor }}"
skip_push: false
dockerfile: "docker/Dockerfile-gorelease"
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
files:
- README*
- config/importer-example.yml
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"