Skip to content

Commit

Permalink
Build and release for linux arm64 (#976)
Browse files Browse the repository at this point in the history
Co-authored-by: etsai-stripe <[email protected]>
  • Loading branch information
vcheung-stripe and etsai-stripe authored Oct 6, 2022
1 parent ac6eefa commit 65571fc
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .goreleaser/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,17 @@ builds:
- linux
goarch:
- amd64
- id: stripe-linux-arm
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:
- arm64
archives:
- replacements:
linux: linux
Expand Down Expand Up @@ -70,6 +81,22 @@ dockers:
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=repository=https://github.com/stripe/stripe-cli"
- "--label=homepage=https://stripe.com"
- goos: linux
goarch: arm64
ids:
- stripe
- stripe-linux-arm
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"
publishers:
- name: deb
ids:
Expand Down

0 comments on commit 65571fc

Please sign in to comment.