-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
124 lines (113 loc) · 3.77 KB
/
.goreleaser.yaml
File metadata and controls
124 lines (113 loc) · 3.77 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
project_name: bk
version: 2
release:
name_template: Buildkite CLI {{.Version}}
draft: true
replace_existing_draft: true
prerelease: auto
make_latest: false
mode: replace
changelog:
use: github
brews:
- name: bk@3
ids:
- macos-archive
- linux-archive
directory: Formula
homepage: https://github.com/buildkite/cli
description: Work with Buildkite from the command-line
license: MIT
skip_upload: false
test: system "#{bin}/bk version"
repository:
owner: buildkite
name: homebrew-buildkite
branch: master
builds:
- id: macos
goos: [darwin]
goarch: [amd64, arm64]
binary: bk
main: .
ldflags:
- -s -w -X github.com/buildkite/cli/v3/cmd/version.Version={{.Version}} -X github.com/buildkite/cli/v3/pkg/cmd/pipeline.MigrationEndpoint=https://m4vrh5pvtd.execute-api.us-east-1.amazonaws.com/production/migrate -X github.com/buildkite/cli/v3/pkg/analytics.apiKey={{.Env.POSTHOG_API_KEY}} -X github.com/buildkite/cli/v3/pkg/oauth.DefaultClientID={{.Env.OAUTH_CLIENT_ID}}
- id: linux
goos: [linux]
goarch: [amd64, arm64]
env:
- CGO_ENABLED=0
binary: bk
main: .
ldflags:
- -s -w -X github.com/buildkite/cli/v3/cmd/version.Version={{.Version}} -X github.com/buildkite/cli/v3/pkg/cmd/pipeline.MigrationEndpoint=https://m4vrh5pvtd.execute-api.us-east-1.amazonaws.com/production/migrate -X github.com/buildkite/cli/v3/pkg/analytics.apiKey={{.Env.POSTHOG_API_KEY}} -X github.com/buildkite/cli/v3/pkg/oauth.DefaultClientID={{.Env.OAUTH_CLIENT_ID}}
- id: windows
goos: [windows]
goarch: [amd64, arm64]
binary: bk
main: .
ldflags:
- -s -w -X github.com/buildkite/cli/v3/cmd/version.Version={{.Version}} -X github.com/buildkite/cli/v3/pkg/cmd/pipeline.MigrationEndpoint=https://m4vrh5pvtd.execute-api.us-east-1.amazonaws.com/production/migrate -X github.com/buildkite/cli/v3/pkg/analytics.apiKey={{.Env.POSTHOG_API_KEY}} -X github.com/buildkite/cli/v3/pkg/oauth.DefaultClientID={{.Env.OAUTH_CLIENT_ID}}
kos:
- repositories:
- docker.io/buildkite/cli
build: linux
main: .
creation_time: "{{.CommitTimestamp}}"
base_image: 'cgr.dev/chainguard/static:latest'
tags:
- '{{.Version}}'
- latest
labels:
org.opencontainers.image.authors: Buildkite Inc. https://buildkite.com
org.opencontainers.image.source: https://github.com/buildkite/cli
org.opencontainers.image.created: "{{.Date}}"
org.opencontainers.image.title: "{{.ProjectName}}"
org.opencontainers.image.revision: "{{.FullCommit}}"
org.opencontainers.image.version: "{{.Version}}"
bare: true
preserve_import_paths: false
disable: '{{ and (isEnvSet "GOOS") (ne .Env.GOOS "linux") }}'
platforms:
- linux/amd64
- linux/arm64
archives:
- id: macos-archive
builds: [macos]
name_template: "bk_{{ .Version }}_macOS_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: true
format: zip
files:
- LICENSE.md
- README.md
- id: linux-archive
builds: [linux]
name_template: "bk_{{ .Version }}_linux_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: true
format: tar.gz
files:
- LICENSE.md
- README.md
- id: windows-archive
builds: [windows]
name_template: "bk_{{ .Version }}_windows_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: false
format: zip
files:
- LICENSE.md
- README.md
nfpms:
- builds:
- linux
vendor: Buildkite
homepage: https://buildkite.com
maintainer: Buildkite <support@buildkite.com>
description: A command line interface for Buildkite.
license: MIT
formats:
- apk
- deb
- rpm
provides:
- bk
# vim: set ts=2 sw=2 tw=0 fo=cnqoj