This repository has been archived by the owner on May 15, 2023. It is now read-only.
forked from warrensbox/terraform-switcher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
103 lines (92 loc) · 2.73 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
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
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
builds:
-
ldflags:
- -s -w -X "main.version={{.Env.RELEASE_VERSION}}"
main: main.go
binary: tfswitch
goos:
- darwin
- linux
- windows
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 6
- 7
ignore:
- goos: windows
goarch: arm
checksum:
name_template: '{{ .ProjectName }}_{{.Env.RELEASE_VERSION}}_checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
archives:
-
name_template: '{{ .ProjectName }}_{{.Env.RELEASE_VERSION}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: darwin
linux: linux
386: 386
amd64: amd64
format_overrides:
- goos: windows
format: zip
brews:
-
# Name of the recipe
# Default to project name
name: tfswitch
# GitHub/GitLab repository to push the formula to
# Gitea is not supported yet, but the support coming
tap:
owner: warrensbox
name: homebrew-tap
# Reporitory to push the tap to.
# github:
# owner: warrensbox
# name: homebrew-tap
# Allows you to set a custom download strategy.
# Default is empty.
#download_strategy: GitHubPrivateRepositoryReleaseDownloadStrategy
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: Warren Veerasingam
email: [email protected]
# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula
# Caveats for the user of your binary.
# Default is empty.
caveats: "Type 'tfswitch' on your command line and choose the terraform version that you want from the dropdown. This command currently only works on MacOs and Linux"
# Your app's homepage.
# Default is empty.
homepage: "https://warrensbox.github.io/terraform-switcher"
# Your app's description.
# Default is empty.
description: "The tfswitch command lets you switch between terraform versions."
# Packages that conflict with your package.
conflicts:
- terraform
# Setting this will prevent goreleaser to actually try to commit the updated
# formula - instead, the formula file will be stored on the dist folder only,
# leaving the responsibility of publishing it to the user.
# Default is false.
skip_upload: false
# So you can `brew test` your formula.
# Default is empty.
test: |
system "#{bin}/tfswitch --version"
# Custom install script for brew.
# Default is 'bin.install "program"'.
install: |
bin.install "tfswitch"