-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
40 lines (40 loc) · 1.16 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
project_name: cc
release:
github:
owner: zbindenren
name: cc
builds:
- id: changelog
goos:
- freebsd
- darwin
- linux
- windows
goarch:
- amd64
main: cmd/changelog/main.go
binary: changelog
env:
- CGO_ENABLED=0
dockers:
- ids:
- changelog
goos: linux
goarch: amd64
dockerfile: packaging/docker/Dockerfile
image_templates:
- 'zbindenren/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}.{{ .Patch }}'
- 'zbindenren/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}'
- 'zbindenren/{{ .ProjectName }}:{{ .Major }}'
- 'zbindenren/{{ .ProjectName }}:latest'
build_flag_templates:
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.url=https://github.com/zbindenren/cc
- --label=org.opencontainers.image.source=https://github.com/zbindenren/cc
- --label=org.opencontainers.image.revision={{ .ShortCommit }}
- --label=org.opencontainers.image.created={{ .Date }}
checksum:
name_template: checksums.txt
before:
hooks:
- go generate ./...