Skip to content

Commit 9364d46

Browse files
committed
Configuring goreleaser
1 parent a9b72ec commit 9364d46

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
dist/
12
/aws-env
23
/coverage.*
34
version_wf

.goreleaser.yml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# This is an example goreleaser.yaml file with some sane defaults.
2+
# Make sure to check the documentation at http://goreleaser.com
3+
before:
4+
hooks:
5+
# You may remove this if you don't use go modules.
6+
- go mod download
7+
# you may remove this if you don't need go generate
8+
- go generate ./...
9+
builds:
10+
- main: ./cmd/aws-env
11+
binary: aws-env
12+
env:
13+
- CGO_ENABLED=0
14+
goos:
15+
- linux
16+
- windows
17+
- darwin
18+
archives:
19+
- replacements:
20+
darwin: Darwin
21+
linux: Linux
22+
windows: Windows
23+
386: i386
24+
amd64: x86_64
25+
checksum:
26+
name_template: 'checksums.txt'
27+
snapshot:
28+
name_template: "{{ .Tag }}-next"
29+
changelog:
30+
sort: asc
31+
filters:
32+
exclude:
33+
- '^docs:'
34+
- '^test:'
35+
#brew:
36+
# name: aws-env
37+
#
38+
# github:
39+
# owner: sendgrid
40+
# name: homebrew-tap
41+
#
42+
# # Allows you to set a custom download strategy.
43+
# # Default is empty.
44+
# download_strategy: GitHubPrivateRepositoryReleaseDownloadStrategy
45+
#
46+
# # Allows you to add a custom require_relative at the top of the formula template
47+
# # Default is empty
48+
# custom_require: "../lib/custom_download_strategy"
49+
#
50+
# # Git author used to commit to the repository.
51+
# # Defaults are shown.
52+
# commit_author:
53+
# name: goreleaserbot
54+
55+
#
56+
# # Folder inside the repository to put the formula.
57+
# # Default is the root folder.
58+
# folder: Formula
59+
#
60+
# # Caveats for the user of your binary.
61+
# # Default is empty.
62+
# caveats: "Must be run through aws-okta"
63+
#
64+
# # Your app's homepage.
65+
# # Default is empty.
66+
# homepage: "https://github.com/sendgrid/aws-env"
67+
#
68+
# # Your app's description.
69+
# # Default is empty.
70+
# description: "A small utility to help populate environment variables using secrets stored in AWS Parameter Store"
71+
#
72+
# # Setting this will prevent goreleaser to actually try to commit the updated
73+
# # formula - instead, the formula file will be stored on the dist folder only,
74+
# # leaving the responsibility of publishing it to the user.
75+
# # If set to auto, the release will not be uploaded to the homebrew tap
76+
# # in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
77+
# # Default is false.
78+
# skip_upload: false

0 commit comments

Comments
 (0)