forked from kubeshop/botkube
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
58 lines (57 loc) · 1.43 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
before:
hooks:
- go mod download
builds:
- id: botkube
binary: botkube
main: cmd/botkube/main.go
ldflags: &ldflags
- -s -w
-X github.com/infracloudio/botkube/pkg/version.Version={{ .Tag }}
-X github.com/infracloudio/botkube/pkg/version.GitCommitID={{ .Commit }}
-X github.com/infracloudio/botkube/pkg/version.BuildDate={{ .Date }}
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 7
snapshot:
name_template: "{{ .Tag }}"
changelog:
skip: true
dockers:
- image_templates:
- 'ghcr.io/infracloudio/botkube:{{ .Tag }}-amd64'
use: buildx
dockerfile: 'build/Dockerfile'
build_flag_templates:
- "--platform=linux/amd64"
- "--build-arg=botkube_version={{ .Tag }}"
- image_templates:
- 'ghcr.io/infracloudio/botkube:{{ .Tag }}-arm64'
use: buildx
goarch: arm64
dockerfile: 'build/Dockerfile'
build_flag_templates:
- "--platform=linux/arm64"
- "--build-arg=botkube_version={{ .Tag }}"
- image_templates:
- 'ghcr.io/infracloudio/botkube:{{ .Tag }}-armv7'
use: buildx
goarch: arm
goarm: 7
dockerfile: 'build/Dockerfile'
build_flag_templates:
- "--platform=linux/arm"
- "--build-arg=botkube_version={{ .Tag }}"
docker_manifests:
- name_template: ghcr.io/infracloudio/botkube:{{ .Tag }}
image_templates:
- ghcr.io/infracloudio/botkube:{{ .Tag }}-amd64
- ghcr.io/infracloudio/botkube:{{ .Tag }}-arm64
- ghcr.io/infracloudio/botkube:{{ .Tag }}-armv7