Skip to content

Commit

Permalink
Add path to main in .goreleaser.yaml (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
kkajla12 authored Oct 20, 2023
1 parent 941c646 commit 970c3d4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ before:
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/edge-agent/
binary: edge-agent
goos:
- linux
Expand All @@ -16,14 +17,22 @@ builds:
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
archives:
- name_template: >-
- format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
Expand Down

0 comments on commit 970c3d4

Please sign in to comment.