forked from kuidio/kuid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
56 lines (56 loc) · 1.38 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
project_name: kuid-server
builds:
- id: kuid-server
binary: kuid-server
main: ./main.go
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
goarch:
- amd64
- arm64
dockers:
- goos: linux
goarch: amd64
ids:
- kuid-server
image_templates:
- "ghcr.io/kuidio/{{ .ProjectName }}:v{{ .Version }}"
- "ghcr.io/kuidio/{{ .ProjectName }}:latest"
dockerfile: goreleaser.dockerfile
skip_push: false
build_flag_templates:
- "--pull"
- "--build-arg=USERID=10000"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.source=https://github.com/kuidio/{{.ProjectName}}"
- "--label=org.opencontainers.image.version=v{{.Version}}"
archives:
- name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "arm" }}armv7
{{- else if eq .Arch "arm64" }}aarch64
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}"
changelog:
use: github
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
prerelease: auto
draft: false
replace_existing_draft: true
disable: false