-
Notifications
You must be signed in to change notification settings - Fork 8
/
.goreleaser.yml
59 lines (57 loc) · 1.21 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
54
55
56
57
58
59
dist: goreleaser
project_name: esc
snapshot:
name_template: "{{ .Version }}-SNAPSHOT"
checksum:
name_template: "{{ .ProjectName }}-{{ .Version }}-checksums.txt"
archives:
- id: archive
name_template: >-
{{- .Binary }}-
{{- .Tag }}-
{{- .Os }}-
{{- if eq .Arch "amd64" }}x64
{{- else }}{{ .Arch }}{{ end }}
wrap_in_directory: esc{{ if eq .Os "windows" }}/bin{{ end }}
format_overrides:
- goos: windows
format: zip
files:
# OS specific scripts, not compiled
- src: bin/{{ .Os }}/*
dst: '.'
strip_parent: true
# binaries
- src: bin/{{ .Os }}-{{ .Arch }}/*
dst: '.'
strip_parent: true
builds:
- id: esc
binary: esc
goarch:
- amd64
- arm64
goos:
- darwin
- windows
- linux
ldflags:
- -s
- -w
- -X github.com/pulumi/esc/cmd/esc/cli/version.Version={{.Tag}}
main: ./cmd/esc/
brews:
-
name: esc
tap:
owner: pulumi
name: homebrew-tap
commit_author:
name: pulumi-bot
email: bot@pulumi.com
homepage: "https://pulumi.com"
description: "Pulumi ESC - Manage Environments, Secrets, and Configuration"
folder: Formula
license: Apache-2.0
test: |
system "#{bin}/esc version"