-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
62 lines (62 loc) · 1.74 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
dist: release
env:
- PACKAGE_NAME=github.com/goatlas-io/atlas
- SUMMARY={{ .Env.SUMMARY }}
- VERSION={{ .Env.VERSION }}
- BRANCH={{ .Env.BRANCH }}
before:
hooks:
- go mod vendor
- go mod tidy
release:
github:
owner: goatlas-io
name: atlas
builds:
- id: linux
goos:
- linux
goarch:
- amd64
ignore:
- goarch: 386
ldflags:
- -X {{.Env.PACKAGE_NAME}}/pkg/common.SUMMARY={{.Env.SUMMARY}} -X {{.Env.PACKAGE_NAME}}/pkg/common.BRANCH={{.Env.BRANCH}} -X {{.Env.PACKAGE_NAME}}/pkg/common.VERSION={{.Env.VERSION}}
- id: darwin
goos:
- darwin
goarch:
- amd64
ignore:
- goarch: 386
ldflags:
- -X {{.Env.PACKAGE_NAME}}/pkg/common.SUMMARY={{.Env.SUMMARY}} -X {{.Env.PACKAGE_NAME}}/pkg/common.BRANCH={{.Env.BRANCH}} -X {{.Env.PACKAGE_NAME}}/pkg/common.VERSION={{.Env.VERSION}}
archives:
- replacements:
386: i386
amd64: x86_64
dockers:
- use: buildx
goos: linux
goarch: amd64
dockerfile: Dockerfile.gorelease
image_templates:
- ghcr.io/goatlas-io/atlas:{{- if .IsSnapshot -}}{{ .Version }}{{- else -}}{{ .Tag }}{{- end -}}
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source=https://github.com/goatlas-io/atlas"
- "--platform=linux/amd64"
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Env.BRANCH }}-{{ .ShortCommit }}-{{ .Timestamp }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"