forked from flipt-io/flipt
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
161 lines (141 loc) · 4.41 KB
/
.goreleaser.yml
File metadata and controls
161 lines (141 loc) · 4.41 KB
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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
version: 2
project_name: flipt
git:
tag_sort: semver
monorepo:
tag_prefix: v
builds:
- builder: prebuilt
goos:
- linux
- darwin
goarch:
- amd64
- arm64
goamd64:
- v1
prebuilt:
path: tmp/dist/flipt_{{ .Os }}_{{ .Arch }}{{ with .Amd64 }}_{{ . }}{{ end }}{{ with .Arm64 }}_{{ . }}{{ end }}/flipt
binary: flipt
sboms:
- artifacts: archive
archives:
- id: main
name_template: >-
{{ .ProjectName }}_
{{- tolower .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
files:
- LICENSE
checksum:
name_template: "checksums.txt"
release:
prerelease: auto # enable rc releases (e.g. v1.0.0-rc.1)
target_commitish: "{{ .Commit }}"
footer: |
## Installation
### Docker Images :whale:
```bash
docker pull docker.flipt.io/flipt/flipt:v{{ .Tag }}
```
```bash
docker pull ghcr.io/flipt-io/flipt:v{{ .Tag }}
```
## Thank you!
We hope you :heart: this release! Feel free to open issues/discussions or reach out to us on Discord if you have any questions or feedback.
- [Discord](https://flipt.io/discord)
- [Github Discussions](https://github.com/flipt-io/flipt/discussions)
- [Github Issues](https://github.com/flipt-io/flipt/issues)
- [Website](https://flipt.io)
changelog:
use: github
format: "{{.SHA}}: {{.Message}} (@{{.AuthorUsername}})"
sort: asc
groups:
- title: "Features"
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "Bug Fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: "Dependencies"
regexp: '^.*?deps(\([[:word:]]+\))??!?:.+$'
order: 999
- title: "Other"
order: 3
dockers:
- dockerfile: ./build/Dockerfile
use: buildx
goos: linux
goarch: amd64
image_templates:
- "flipt/flipt:v{{ .Tag }}-amd64"
- "flipt/flipt:v{{ .Major }}-amd64"
- "ghcr.io/flipt-io/flipt:v{{ .Tag }}-amd64"
- "ghcr.io/flipt-io/flipt:v{{ .Major }}-amd64"
build_flag_templates:
- "--platform=linux/amd64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- dockerfile: ./build/Dockerfile
use: buildx
goos: linux
goarch: arm64
image_templates:
- "flipt/flipt:v{{ .Tag }}-arm64"
- "flipt/flipt:v{{ .Major }}-arm64"
- "ghcr.io/flipt-io/flipt:v{{ .Tag }}-arm64"
- "ghcr.io/flipt-io/flipt:v{{ .Major }}-arm64"
build_flag_templates:
- "--platform=linux/arm64"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
docker_manifests:
- name_template: "flipt/flipt:v{{ .Tag }}"
image_templates:
- "flipt/flipt:v{{ .Tag }}-amd64"
- "flipt/flipt:v{{ .Tag }}-arm64"
- name_template: "ghcr.io/flipt-io/flipt:v{{ .Tag }}"
image_templates:
- "ghcr.io/flipt-io/flipt:v{{ .Tag }}-amd64"
- "ghcr.io/flipt-io/flipt:v{{ .Tag }}-arm64"
- name_template: "flipt/flipt:v{{ .Major }}"
image_templates:
- "flipt/flipt:v{{ .Major }}-amd64"
- "flipt/flipt:v{{ .Major }}-arm64"
- name_template: "ghcr.io/flipt-io/flipt:v{{ .Major }}"
image_templates:
- "ghcr.io/flipt-io/flipt:v{{ .Major }}-amd64"
- "ghcr.io/flipt-io/flipt:v{{ .Major }}-arm64"
announce:
discord:
enabled: true
brews:
- name: flipt@2
homepage: https://flipt.io
description: A Git-first, CloudNative feature management solution
license: FCL-1.0-MIT
directory: Formula
skip_upload: auto
install: |
bin.install "flipt"
output = Utils.popen_read("SHELL=bash #{bin}/flipt completion bash")
(bash_completion/"flipt").write output
output = Utils.popen_read("SHELL=zsh #{bin}/flipt completion zsh")
(zsh_completion/"_flipt").write output
post_install: |
(var/"log/flipt").mkpath
service: |
run [opt_bin/"flipt", "server"]
environment_variables PATH: std_service_path_env
keep_alive true
error_log_path "#{var}/log/flipt/server-stderr.log"
log_path "#{var}/log/flipt/server-stdout.log"
repository:
owner: flipt-io
name: homebrew-brew
branch: main