Skip to content

Commit

Permalink
quick fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NorseGaud committed May 8, 2024
1 parent 384d615 commit 45747a7
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ before:

builds:
# A separated build to run the packer-plugins-check only once for a linux_amd64 binary
-
id: build1
- id: build1
mod_timestamp: '{{ .CommitTimestamp }}'
hooks:
post:
Expand All @@ -26,33 +25,31 @@ builds:
flags:
- -trimpath #removes all file system paths from the compiled executable
ldflags:
- '-s -w -X main.version={{ .Version }}' -X main.commit={{ .Commit }}
- '-s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }}'
goos:
- darwin
goarch:
- arm64
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.PACKER_CI_PROJECT_API_VERSION }}_{{ .Os }}_{{ .Arch }}'
no_unique_dist_dir: true
-
id: build2
- id: build2
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath #removes all file system paths from the compiled executable
ldflags:
- '-s -w -X main.version={{ .Version }}' -X main.commit={{ .Commit }}
- '-s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }}'
goos:
- linux
goarch:
- amd64
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Env.PACKER_CI_PROJECT_API_VERSION }}_{{ .Os }}_{{ .Arch }}'
no_unique_dist_dir: true
-
id: build3
- id: build3
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath #removes all file system paths from the compiled executable
ldflags:
- '-s -w -X main.version={{ .Version }}' -X main.commit={{ .Commit }}
- '-s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }}'
goos:
- darwin
goarch:
Expand Down

0 comments on commit 45747a7

Please sign in to comment.