-
Notifications
You must be signed in to change notification settings - Fork 155
/
.goreleaser.yml
99 lines (99 loc) · 2.28 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
project_name: kanister
before:
hooks:
- go mod download
release:
prerelease: auto
extra_files:
- glob: 'helm_package/kanister-operator-*.tgz'
- glob: 'helm_package/index.yaml'
name_template: helm_index.yaml
builds:
- id: kanctl
binary: kanctl
main: cmd/kanctl/main.go
ldflags: &ldflags
- -extldflags "-static"
-X github.com/kanisterio/kanister/pkg/version.Version={{.Version}}
-X github.com/kanisterio/kanister/pkg/version.GitCommit={{.Commit}}
-X github.com/kanisterio/kanister/pkg/version.BuildDate={{.Date}}
env: &env
- GO111MODULE=on
- CGO_ENABLED=1
- GOEXPERIMENT=boringcrypto
- CC=gcc
- CXX=g++
- GO_EXTLINK_ENABLED=0
goos:
- linux
goarch: &goarch
- amd64
- id: kando
binary: kando
main: ./cmd/kando
ldflags: *ldflags
env: *env
tags:
- fipsonly
goos: &goos
- linux
goarch: *goarch
- id: controller
binary: controller
main: cmd/controller/main.go
ldflags: *ldflags
env: *env
goos: *goos
goarch: *goarch
- id: repo-server-controller
binary: repo-server-controller
main: cmd/reposervercontroller/main.go
ldflags: *ldflags
env: *env
goos: *goos
goarch: *goarch
dockers:
- ids:
- controller
image_templates:
- 'ghcr.io/kanisterio/controller:{{ .Tag }}'
dockerfile: 'docker/controller/Dockerfile'
build_flag_templates:
- "--pull"
- ids:
- repo-server-controller
image_templates:
- 'ghcr.io/kanisterio/repo-server-controller:{{ .Tag }}'
dockerfile: 'docker/repo-server-controller/Dockerfile'
build_flag_templates:
- "--pull"
- ids:
- kando
image_templates:
- 'ghcr.io/kanisterio/kanister-tools:{{ .Tag }}'
dockerfile: 'docker/tools/Dockerfile'
build_flag_templates:
- "--pull"
- "--build-arg=kan_tools_version={{ .Tag }}"
- "--build-arg=kopia_build_commit=1bceb7155ede"
- "--build-arg=kopia_repo_org=kopia"
extra_files:
- 'LICENSE'
- image_templates:
- 'ghcr.io/kanisterio/kanister-kubectl-1.18:{{ .Tag }}'
dockerfile: 'docker/kanister-kubectl/Dockerfile'
build_flag_templates:
- "--build-arg=TOOLS_IMAGE=ghcr.io/kanisterio/kanister-tools:{{ .Tag }}"
snapshot:
name_template: '{{ .Tag }}'
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^pre-release:'
archives:
- allow_different_binary_count: true