generated from brevdev/seed
-
Notifications
You must be signed in to change notification settings - Fork 17
/
.goreleaser.yml
56 lines (54 loc) · 1.87 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
before:
hooks:
- go mod download
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- linux
# - windows
goarch:
- amd64
- arm64
binary: brev
ldflags:
- -X github.com/brevdev/brev-cli/pkg/cmd/version.Version={{.Tag}}
brews:
- name: brev
folder: Formula
# GitHub/GitLab repository to push the formula to
repository:
owner: brevdev
name: homebrew-brev
# Optionally a token can be provided, if it differs from the token provided to GoReleaser
# token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
# The project name and current git tag are used in the format string.
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://docs.brev.dev"
description: "CLI tool for managing workspaces provided by brev.dev"
install: |
bin.install "brev"
generate_completions_from_executable("#{bin}/brev", "completion")
test: |
system "#{bin}/brev" "--version"
archives:
- format_overrides:
- goos: windows
format: zip
release:
github:
prerelease: auto
# dockers:
# - image_templates:
# - "docker.pkg.github.com/brevdev/brev-cli/{{ .ProjectName }}:latest"
# - "docker.pkg.github.com/brevdev/brev-cli/{{ .ProjectName }}:{{ .Major }}"
# - "docker.pkg.github.com/brevdev/brev-cli/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}"
# - "docker.pkg.github.com/brevdev/brev-cli/{{ .ProjectName }}:{{ .Major }}.{{ .Minor }}.{{ .Patch }}"
# build_flag_templates:
# - "--pull"
# - "--label=org.opencontainers.image.created={{.Date}}"
# - "--label=org.opencontainers.image.name={{.ProjectName}}"
# - "--label=org.opencontainers.image.revision={{.FullCommit}}"
# - "--label=org.opencontainers.image.version={{.Version}}"
# - "--label=org.opencontainers.image.source={{.GitURL}}"