-
Notifications
You must be signed in to change notification settings - Fork 6
/
goreleaser.yml
101 lines (95 loc) · 2.21 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
90
91
92
93
94
95
96
97
98
99
100
101
env:
- GO111MODULE=on
- GOPROXY=https://proxy.golang.org/
before:
hooks:
- go mod download
builds:
- id: asws
main: ./cmd/asws.go
binary: asws
goos:
- linux
- darwin
goarch:
- "386"
- amd64
- arm
- arm64
mod_timestamp: '{{ .CommitTimestamp }}'
env:
- CGO_ENABLED=0
flags:
- -trimpath
- -tags=netgo
- -a
- -v
ldflags: -s -w -X main.Version={{.Version}}
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- Merge pull request
- Merge branch
- go mod tidy
nfpms:
- file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
homepage: https://github.com/txn2/asws
description: Statis web server.
maintainer: Craig Johnston https://twitter.com/cjimti
license: Apache 2.0
vendor: https://github.com/txn2
formats:
- apk
- deb
- rpm
release:
github:
owner: txn2
name: asws
name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}"
dockers:
-
goos: linux
goarch: amd64
goarm: ''
ids:
- asws
dockerfile: dockerfiles/scratch/Dockerfile
extra_files:
- www
- files
image_templates:
- "txn2/asws:latest"
- "txn2/asws:{{ .Tag }}"
- "txn2/asws:v{{ .Major }}"
- "txn2/asws:latest-scratch"
- "txn2/asws:{{ .Tag }}-scratch"
- "txn2/asws:v{{ .Major }}-scratch"
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
-
goos: linux
goarch: amd64
goarm: ''
ids:
- asws
dockerfile: dockerfiles/alpine/Dockerfile
extra_files:
- www
- files
image_templates:
- "txn2/asws:latest-alpine"
- "txn2/asws:{{ .Tag }}-alpine"
- "txn2/asws:v{{ .Major }}-alpine-3"
- "txn2/asws:{{ .Tag }}-alpine-3"
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"