-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
127 lines (126 loc) · 4.12 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
brews:
- name: insights
# Do not update our tap repo if the git tag indicates prerelease. E.G. 1.0.0-rc1
skip_upload: auto
goarm: 6
tap:
owner: FairwindsOps
name: homebrew-tap
folder: Formula
description: Command Line utility for Fairwinds Insights
test: |
system "#{bin}/insights version"
builds:
- ldflags:
- -X github.com/fairwindsops/insights-cli/pkg/version.version={{.Version}} -X github.com/fairwindsops/insights-cli/pkg/version.commit={{.Commit}} -s -w
env:
- CGO_ENABLED=0
main: ./cmd/insights
# goreleaser builds a matrix of the GOOS, GOArch, and GOARM listed below,
# minus those under `ignore`.
goarch:
- 386
- amd64
- arm
- arm64
goos:
- linux
- darwin
- windows
goarm:
- 6
- 7
ignore:
- goos: windows
goarch: arm64
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^Managed by Terraform$'
dockers:
# There are multiple images to match the `--platform` docker build flag with
# combinations of `GOOS`, `GOARCH`, and `GOARM`
# Also, some images are broken out to avoid pushing them for pre-release git
# tags. E.G. VX.Y.Z-rc1 should not docker-push latest.
- image_templates:
- "quay.io/fairwinds/insights-cli:{{ .Tag }}-amd64"
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "quay.io/fairwinds/insights-cli:v{{ .Major }}-amd64"
- "quay.io/fairwinds/insights-cli:v{{ .Major }}.{{ .Minor }}-amd64"
use: buildx
# Do not push images if the git tag indicates prerelease. E.G. 1.0.0-rc1
skip_push: auto
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "quay.io/fairwinds/insights-cli:{{ .Tag }}-arm64v8"
use: buildx
goarch: arm64
goos: linux
build_flag_templates:
- "--platform=linux/arm64/v8"
- image_templates:
- "quay.io/fairwinds/insights-cli:v{{ .Major }}-arm64v8"
- "quay.io/fairwinds/insights-cli:v{{ .Major }}.{{ .Minor }}-arm64v8"
use: buildx
# Do not push images if the git tag indicates prerelease. E.G. 1.0.0-rc1
skip_push: auto
goarch: arm64
goos: linux
build_flag_templates:
- "--platform=linux/arm64/v8"
- image_templates:
- "quay.io/fairwinds/insights-cli:{{ .Tag }}-armv7"
use: buildx
goarch: arm
goarm: 7
goos: linux
build_flag_templates:
- "--platform=linux/arm/v7"
- image_templates:
- "quay.io/fairwinds/insights-cli:v{{ .Major }}-armv7"
- "quay.io/fairwinds/insights-cli:v{{ .Major }}.{{ .Minor }}-armv7"
use: buildx
# Do not push images if the git tag indicates prerelease. E.G. 1.0.0-rc1
skip_push: auto
goarch: arm
goarm: 7
goos: linux
build_flag_templates:
- "--platform=linux/arm/v7"
docker_manifests:
# Combine images of the same tag into a single Docker manifest.
# E.G. An insights-cli:v1.2.3 manifest includes images
# insights-cli:v1.2.3-amd64, ...:v1.2.3-arm64v8, ...:v1.2.3-armv7, Etc.
- name_template: quay.io/fairwinds/insights-cli:latest
# Do not push manifests if the git tag indicates prerelease. E.G. 1.0.0-rc1
skip_push: auto
image_templates:
- "quay.io/fairwinds/insights-cli:{{ .Tag }}-amd64"
- "quay.io/fairwinds/insights-cli:{{ .Tag }}-arm64v8"
- "quay.io/fairwinds/insights-cli:{{ .Tag }}-armv7"
- name_template: quay.io/fairwinds/insights-cli:{{ .Tag }}
image_templates:
- "quay.io/fairwinds/insights-cli:{{ .Tag }}-amd64"
- "quay.io/fairwinds/insights-cli:{{ .Tag }}-arm64v8"
- "quay.io/fairwinds/insights-cli:{{ .Tag }}-armv7"
- name_template: quay.io/fairwinds/insights-cli:v{{ .Major }}
# Do not push manifests if the git tag indicates prerelease. E.G. 1.0.0-rc1
skip_push: auto
image_templates:
- "quay.io/fairwinds/insights-cli:v{{ .Major }}-amd64"
- "quay.io/fairwinds/insights-cli:v{{ .Major }}-arm64v8"
- "quay.io/fairwinds/insights-cli:v{{ .Major }}-armv7"
- name_template: quay.io/fairwinds/insights-cli:v{{ .Major }}.{{ .Minor }}
# Do not push manifests if the git tag indicates prerelease. E.G. 1.0.0-rc1
skip_push: auto
image_templates:
- "quay.io/fairwinds/insights-cli:v{{ .Major }}.{{ .Minor }}-amd64"
- "quay.io/fairwinds/insights-cli:v{{ .Major }}.{{ .Minor }}-arm64v8"
- "quay.io/fairwinds/insights-cli:v{{ .Major }}.{{ .Minor }}-armv7"