-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.goreleaser.yml
63 lines (62 loc) · 1.48 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
#before
builds:
- env:
- CGO_ENABLED=0
- GO111MODULE=on
id: "samsahai"
main: ./cmd/samsahai/main.go
binary: samsahai
ldflags:
- -s -w
- -X "{{.Env.GO_PACKAGE}}.Version={{.Version}}"
- -X "{{.Env.GO_PACKAGE}}.GitCommit={{.ShortCommit}}"
goos:
- linux
ignore:
- goos: linux
goarch: 386
- env:
- CGO_ENABLED=0
- GO111MODULE=on
id: "staging"
main: ./cmd/staging/main.go
binary: staging
ldflags:
- -s -w
- -X "{{.Env.GO_PACKAGE}}.Version={{.Version}}"
- -X "{{.Env.GO_PACKAGE}}.GitCommit={{.ShortCommit}}"
goos:
- linux
ignore:
- goos: linux
goarch: 386
checksum:
name_template: "{{ .ProjectName }}_checksums.txt"
dist: out
#release:
# disable: true
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers:
- goos: linux
goarch: amd64
binaries:
- samsahai
- staging
image_templates:
- "{{ .Env.DOCKER_REPO }}:{{ .Tag }}"
- "{{ .Env.DOCKER_REPO }}:latest"
dockerfile: scripts/alpine.Dockerfile
build_flag_templates:
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
- "--build-arg=HTTP_PROXY={{.Env.http_proxy}}"
- "--build-arg=HTTPS_PROXY={{.Env.https_proxy}}"
- "--build-arg=NO_PROXY={{.Env.no_proxy}}"
extra_files:
- bin/kubectl-linux