-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
39 lines (38 loc) · 1.25 KB
/
.goreleaser.yaml
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
project_name: goblackhole
builds:
- env: [CGO_ENABLED=0]
goos:
- linux
- darwin
goarch:
- amd64
- arm64
archives:
- name_template: "goblackhole-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
files: [a-workaround-to-include-only-the-binary*]
wrap_in_directory: false
checksum:
name_template: "goblackhole-{{ .Version }}-checksums.sha256"
dockers:
- image_templates: ["docker.io/bedag/goblackhole:{{ .Version }}"]
dockerfile: Dockerfile
build_flag_templates:
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/bedag/goblackhole
- --label=org.opencontainers.image.source=https://github.com/bedag/goblackhole
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache-2.0
extra_files:
- config.yaml
nfpms:
- maintainer: Bedag Network Operation Center <noc@bedag.ch>
description: Goblackhole.
homepage: https://github.com/bedag/goblackhole
license: Apache-2.0
formats:
- deb
- rpm
- apk