-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
53 lines (45 loc) · 1.02 KB
/
.goreleaser.yaml
File metadata and controls
53 lines (45 loc) · 1.02 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
# Copyright (c) Codesphere Inc.
# SPDX-License-Identifier: Apache-2.0
version: 2
before:
hooks:
- go mod tidy
builds:
- id: cli
env:
- CGO_ENABLED=0
targets:
- linux_amd64
- linux_arm64
- darwin_arm64
- darwin_amd64
- windows_amd64
main: ./cli
binary: oms
ldflags:
- -s -w
- -X github.com/codesphere-cloud/oms/internal/version.version={{.Version}}
- -X github.com/codesphere-cloud/oms/internal/version.commit={{.Commit}}
- -X github.com/codesphere-cloud/oms/internal/version.date={{.Date}}
- -X github.com/codesphere-cloud/oms/internal/version.os={{.Os}}
- -X github.com/codesphere-cloud/oms/internal/version.arch={{.Arch}}
changelog:
sort: asc
filters:
exclude:
- "^docs"
- "^test"
- "^devx"
- "^chore"
archives:
- id: bin
formats:
- binary
- id: tar
formats:
- tar.gz
name_template: "{{.Os}}_{{.Arch}}"
release:
footer: >-
---
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).