-
Notifications
You must be signed in to change notification settings - Fork 397
/
.goreleaser.yml
53 lines (47 loc) · 1.16 KB
/
.goreleaser.yml
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
project_name: doctl
version: 2
builds:
- main: ./cmd/doctl/main.go
env:
- CGO_ENABLED=0
- GO111MODULE=on
flags:
- -mod=vendor
- -v
ldflags:
- -X github.com/digitalocean/doctl.Build={{ .ShortCommit }}
- -X github.com/digitalocean/doctl.Major={{ .Major }}
- -X github.com/digitalocean/doctl.Minor={{ .Minor }}
- -X github.com/digitalocean/doctl.Patch={{ .Patch }}
- -X github.com/digitalocean/doctl.Label={{ if .IsSnapshot }}snapshot{{ else }}release{{ end }}
goos:
- windows
- darwin
- linux
ignore:
- goos: darwin
goarch: 386
archives:
- name_template: "doctl-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
format_overrides:
- goos: windows
format: zip
files: [a-workaround-to-include-only-the-binary*]
wrap_in_directory: false
source:
enabled: true
name_template: 'doctl-{{ .Version }}-source'
checksum:
name_template: "doctl-{{ .Version }}-checksums.sha256"
dockers:
- dockerfile: Dockerfile.goreleaser
image_templates:
- "digitalocean/doctl:latest"
- "digitalocean/doctl:{{ .Major }}-latest"
- "digitalocean/doctl:{{ .Version }}"
release:
github:
owner: digitalocean
name: doctl
changelog:
disable: false