-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
85 lines (83 loc) · 2.5 KB
/
.goreleaser.yaml
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
# Database Gateway provides access to servers with ACL for safe and restricted database interactions.
# Copyright (C) 2024 Kirill Zhuravlev
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
version: 2
before:
hooks:
- go mod tidy
builds:
- id: 'database-gateway'
binary: 'database-gateway'
main: ./cmd/gateway
ldflags:
- -s
- -w
- -X main.version={{.Summary}}
mod_timestamp: '{{ .CommitTimestamp }}'
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
# goarch:
# - amd64
# goarm:
# - 6
# - 7
# goamd64:
# - v2
# - v3
# goarm64:
# - v9.0
dockers:
- id: 'database-gateway'
goos: linux
goarch: amd64
ids:
- 'database-gateway'
image_templates:
- "kazhuravlev/database-gateway:latest"
- "kazhuravlev/database-gateway:{{ .Tag }}"
- "kazhuravlev/database-gateway:v{{ .Major }}"
- "kazhuravlev/database-gateway:v{{ .Major }}.{{ .Minor }}"
dockerfile: 'Dockerfile'
use: buildx
build_flag_templates:
- "--platform=linux/amd64"
brews:
- name: 'database-gateway'
goarm: "6"
goamd64: v3
repository:
owner: 'kazhuravlev'
name: 'homebrew-database-gateway'
branch: main
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
url_template: "https://github.com/kazhuravlev/database-gateway/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
commit_author:
name: goreleaserbot
email: kazhuravlev+goreleaserbot@fastmail.com
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/kazhuravlev/database-gateway"
description: "Safe access to production databases"
license: "GPL-3.0"
test: |
system "#{bin}/gateway help"
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ incpatch .Version }}-next"