-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to go1.16 and split releaser to separate builds on Linux, macO…
…S, and Windows (#599) * Update to go 1.16 and update dependencies * Update linter and fix new linting issues * Test against go.1.16 * Run mod tidy * Start splitting the goreleaser flow to mac and everything else * Remove the golang cross compile steps * Update goreleaser scripts for separate build paths * Remove some unneeded steps temporarily * Split builds per platform * Add missing docker, nfpms, and scoop steps * Apply yaml formatter for consistency * Move build files into a folder and make the release steps consistent * Apply consistent formatting * Add fetch depth to mac and windows
- Loading branch information
Showing
14 changed files
with
329 additions
and
277 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,65 @@ | ||
env: | ||
- GO111MODULE=on | ||
before: | ||
hooks: | ||
- go mod download | ||
- go generate ./... | ||
project_name: stripe | ||
builds: | ||
- id: stripe-linux | ||
ldflags: | ||
- -s -w -X github.com/stripe/stripe-cli/pkg/version.Version={{.Version}} | ||
binary: stripe | ||
env: | ||
- CGO_ENABLED=0 | ||
main: ./cmd/stripe/main.go | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
archives: | ||
- replacements: | ||
linux: linux | ||
386: i386 | ||
amd64: x86_64 | ||
files: | ||
- none* | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- "^docs:" | ||
- "^test:" | ||
checksum: | ||
name_template: "{{ .ProjectName }}-linux-checksums.txt" | ||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
nfpms: | ||
- builds: | ||
- stripe-linux | ||
vendor: Stripe | ||
homepage: https://stripe.com | ||
maintainer: Stripe <support@stripe.com> | ||
description: Stripe CLI utility | ||
license: Apache 2.0 | ||
formats: | ||
- deb | ||
- rpm | ||
dockers: | ||
- goos: linux | ||
goarch: amd64 | ||
binaries: | ||
- stripe | ||
builds: | ||
- stripe-linux | ||
image_templates: | ||
- "stripe/stripe-cli:latest" | ||
- "stripe/stripe-cli:{{ .Tag }}" | ||
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=repository=https://github.com/stripe/stripe-cli" | ||
- "--label=homepage=https://stripe.com" |
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
env: | ||
- GO111MODULE=on | ||
before: | ||
hooks: | ||
- go mod download | ||
- go generate ./... | ||
project_name: stripe | ||
builds: | ||
- id: stripe-darwin | ||
ldflags: | ||
- -s -w -X github.com/stripe/stripe-cli/pkg/version.Version={{.Version}} | ||
binary: stripe | ||
env: | ||
- CGO_ENABLED=1 | ||
main: ./cmd/stripe/main.go | ||
goos: | ||
- darwin | ||
goarch: | ||
- amd64 | ||
archives: | ||
- replacements: | ||
darwin: mac-os | ||
amd64: x86_64 | ||
files: | ||
- none* | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- "^docs:" | ||
- "^test:" | ||
checksum: | ||
name_template: "{{ .ProjectName }}-checksums.txt" | ||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
brews: | ||
- tap: | ||
owner: stripe | ||
name: homebrew-stripe-cli | ||
commit_author: | ||
name: stripe-ci | ||
email: support@stripe.com | ||
homepage: https://stripe.com | ||
description: Stripe CLI utility | ||
install: | | ||
bin.install "stripe" | ||
rm Dir["#{bin}/{stripe-completion.bash,stripe-completion.zsh}"] | ||
system bin/"stripe", "completion", "--shell", "bash" | ||
system bin/"stripe", "completion", "--shell", "zsh" | ||
bash_completion.install "stripe-completion.bash" | ||
zsh_completion.install "stripe-completion.zsh" | ||
(zsh_completion/"_stripe").write <<~EOS | ||
#compdef stripe | ||
_stripe () { | ||
local e | ||
e=$(dirname ${funcsourcetrace[1]%:*})/stripe-completion.zsh | ||
if [[ -f $e ]]; then source $e; fi | ||
} | ||
EOS | ||
caveats: "❤ Thanks for installing the Stripe CLI! If this is your first time using the CLI, be sure to run `stripe login` first." |
Oops, something went wrong.