-
Notifications
You must be signed in to change notification settings - Fork 9
/
.goreleaser.yaml
103 lines (96 loc) · 2.35 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
project_name: clace
release:
github:
owner: claceio
name: clace
name_template: "Release {{.Tag}}"
draft: true
prerelease: "auto"
before:
hooks:
- go mod download
- go mod tidy
- git clone --single-branch --depth 1 https://github.com/claceio/appspecs.git
- rm -rf appspecs/.git
- rm -rf internal/server/appspecs
- mv appspecs internal/server
- git clone --single-branch --depth 1 https://github.com/claceio/apps.git
- cp internal/server/list_apps/embed.go .
- rm -rf internal/server/list_apps
- mv apps/clace/list_apps internal/server
- mv embed.go internal/server/list_apps/
- rm -rf apps
- go test -race ./...
builds:
- main: ./cmd/clace
binary: clace
flags:
- -trimpath
ldflags:
- -w
- -X main.gitCommit={{.ShortCommit}}
- -X main.gitVersion={{.Version}}
env:
- GO111MODULE=on
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
- freebsd
goarch:
- amd64
- arm64
ignore:
- goos: freebsd
goarch: arm64
- goos: windows
goarch: arm64
nfpms:
- file_name_template: "{{.ProjectName}}-{{.Tag}}-{{.Arch}}{{if .Arm}}{{.Arm}}{{end}}"
homepage: https://clace.io/
description: Securely develop and deploy internal applications
maintainer: Ajay Kidave <[email protected]>
license: Apache 2.0
vendor: ClaceIO LLC.
formats:
- deb
- rpm
contents:
- src: /usr/bin/clace
dst: /usr/local/bin/clace
type: "symlink"
checksum:
name_template: "SHA256SUMS"
algorithm: sha256
archives:
- name_template: "{{.ProjectName}}-{{.Tag}}-{{.Os}}-{{.Arch}}{{if .Arm}}{{.Arm}}{{end}}"
wrap_in_directory: true
format: zip
files:
- README.md
- LICENSE
- name_template: "{{.ProjectName}}-{{.Tag}}-{{.Os}}-{{.Arch}}{{if .Arm}}{{.Arm}}{{end}}"
id: targz-archives
wrap_in_directory: true
format: tar.gz
files:
- README.md
- LICENSE
# https://goreleaser.com/customization/changelog/
changelog:
skip: false
use: github
sort: asc
groups:
- title: "New Features"
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: "Bug Fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: "Dependencies"
regexp: "^.*deps[(\\w)]*:+.*$"
order: 30
- title: Other
order: 999