Skip to content

Commit

Permalink
Add Go releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejoh committed Jun 7, 2024
1 parent 6bbc492 commit 36912b9
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
project_name: rke2diff
release:
github:
owner: mikejoh
name: rke2diff
name_template: 'v{{.Tag}}'
builds:
- main: ./cmd/rke2diff/
- id: rke2diff
goos:
- linux
- darwin
- windows
goarch:
- amd64
targets:
- linux_amd64_v1
- darwin_amd64_v1
- windows_amd64_v1
dir: .
main: ./cmd/rke2diff/
binary: rke2diff
builder: go
gobinary: go
command: build
ldflags:
- -s -w -X=github.com/mikejoh/rke2diff/internal/buildinfo.Version={{ .Version }} -X=github.com/mikejoh/rke2diff/internal/buildinfo.Name=rke2diff -X=github.com/mikejoh/rke2diff/internal/buildinfo.GitSHA={{ .Commit }}
dist: ./build

0 comments on commit 36912b9

Please sign in to comment.