forked from hashicorp/copywrite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
54 lines (53 loc) · 1.43 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
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
version: 2
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
main: main.go
ldflags:
- -s -w -X github.com/hashicorp/copywrite/cmd.version={{.Version}} -X github.com/hashicorp/copywrite/cmd.commit={{.ShortCommit}}
binary: copywrite
archives:
- name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'SHA256SUMS'
release:
github:
owner: hashicorp
name: copywrite
header: |
- Attached to this release are compressed builds of the `copywrite` client
# Auto-publish to the HashiCorp homebrew tap: https://github.com/hashicorp/homebrew-tap
brews:
- name: copywrite
repository:
owner: hashicorp
name: homebrew-tap
commit_author:
name: '{{ .Env.HOMEBREW_COMMIT_AUTHOR_NAME }}'
email: '{{ .Env.HOMEBREW_COMMIT_EMAIL }}'
homepage: 'https://github.com/hashicorp/copywrite'
description: 'copywrite -- utilities for managing copyright headers and license files for GitHub repos'
license: 'MPL-2.0'
directory: Formula
test: |
system "#{bin}/copywrite --version"