-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded to go version 1.20, added version to release artifacts and r…
…educed final artifact sizes (#13)
- Loading branch information
Showing
4 changed files
with
26 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,39 @@ | ||
before: | ||
hooks: | ||
- go mod download | ||
|
||
builds: | ||
- env: | ||
# goreleaser does not work with CGO, it could also complicate | ||
# usage by users in CI/CD systems like Terraform Cloud where | ||
# they are unable to install libraries. | ||
- CGO_ENABLED=0 | ||
- GO111MODULE=on | ||
mod_timestamp: '{{ .CommitTimestamp }}' | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
- freebsd | ||
- openbsd | ||
- netbsd | ||
- windows | ||
- linux | ||
goarch: | ||
- amd64 | ||
- '386' | ||
- arm | ||
- arm64 | ||
- s390x | ||
|
||
source: | ||
enabled: true | ||
name_template: 'sources' | ||
ldflags: | ||
# -s Omit the symbol table and debug information | ||
# -w Omit the DWARF symbol table | ||
# -X importpath.name=value # set the value of the string variable in importpath named name to value | ||
# Someday we could implement a "version" command and set the version like this: | ||
# - '-s -w -X "github.com/cloudposse/slack-notifier/cmd.Version={{.Env.GORELEASER_CURRENT_TAG}}"' | ||
- '-s -w' | ||
|
||
archives: | ||
- format: binary | ||
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}' | ||
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' | ||
|
||
checksum: | ||
name_template: 'checksums.txt' | ||
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' | ||
algorithm: sha256 | ||
|
||
release: | ||
# If you want to manually examine the release before it is live, uncomment this line: | ||
# draft: true | ||
|
||
snapshot: | ||
name_template: "{{ incpatch .Version }}" | ||
changelog: | ||
skip: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module github.com/cloudposse/slack-notifier | ||
|
||
go 1.13 | ||
go 1.20 |