Skip to content

Commit

Permalink
add goreleaser
Browse files Browse the repository at this point in the history
Signed-off-by: Eti Ijeoma <ijayeti@gmail.com>
  • Loading branch information
Aijeyomah committed Oct 4, 2024
1 parent 9f8fd99 commit b351c11
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
project_name: kanvas-snapshot

before:
hooks:
- go mod tidy

builds:
- main: ./main.go

env:
- CGO_ENABLED=0

ldflags:
- -s -w
- -X main.MesheryCloudApiCookie={{.Env.MESHERY_CLOUD_API_COOKIE}}
- -X main.MesheryApiCookie={{.Env.MESHERY_API_COOKIE}}
- -X main.MesheryCloudApiBaseUrl={{.Env.MESHERY_CLOUD_API_BASE_URL}}
- -X main.MesheryApiBaseUrl={{.Env.MESHERY_API_BASE_URL}}
- -X main.SystemID={{.Env.SYSTEM_ID}}

goos:
- darwin
- linux
- windows

goarch:
- 386
- amd64
- arm
- arm64

ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64

archives:
- id: stable
name_template: >-
{{ .ProjectName }}_{{.Version}}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
format: tar.gz
format_overrides:
- goos: windows
format: zip

checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

release:
name_template: "Kanvas Snapshot {{.Tag}}"

0 comments on commit b351c11

Please sign in to comment.