-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
46 lines (40 loc) · 1.04 KB
/
.goreleaser.yaml
File metadata and controls
46 lines (40 loc) · 1.04 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
project_name: hapi
version: 2
builds:
- main: ./main.go
env:
- CGO_ENABLED=0
- GO111MODULE=on
flags:
- -mod=vendor
- -v
ldflags:
- -X github.com/hostinger/api-cli/utils.Build={{ .ShortCommit }}
- -X github.com/hostinger/api-cli/utils.Major={{ .Major }}
- -X github.com/hostinger/api-cli/utils.Minor={{ .Minor }}
- -X github.com/hostinger/api-cli/utils.Patch={{ .Patch }}
goos:
- windows
- darwin
- linux
archives:
- name_template: "hapi-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
files: [a-workaround-to-include-only-the-binary*]
wrap_in_directory: false
source:
enabled: true
name_template: 'hapi-{{ .Version }}-source'
checksum:
name_template: "hapi-{{ .Version }}-checksums.sha256"
#dockers:
# - dockerfile: Dockerfile.goreleaser
# image_templates:
# - "hostinger/hapi:latest"
# - "hostinger/hapi:{{ .Major }}-latest"
# - "hostinger/hapi:{{ .Version }}"
release:
github:
owner: hostinger
name: api-cli
changelog:
disable: false