From 36912b9e2df67cb93f4a570a0231d0ef9bc28d2d Mon Sep 17 00:00:00 2001 From: Mikael Johansson Date: Fri, 7 Jun 2024 17:15:57 +0200 Subject: [PATCH] Add Go releaser --- .goreleaser.yaml | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 0421f5f..8ad2729 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -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