From e1e001fc4ed362ca30828b28001223a7f83d755e Mon Sep 17 00:00:00 2001 From: Jake Date: Thu, 25 Jul 2024 15:24:21 +0100 Subject: [PATCH] goreleaser init --- .gitignore | 2 ++ .goreleaser.yaml | 37 ++++++++++++++++++++++++++----------- 2 files changed, 28 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 6df9c8e..d3f7ee6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ bin/ .idea/ + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 7f170dc..5c3e3c1 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,4 +1,12 @@ project_name: kratix-cli + +version: 2 + +before: + hooks: + - go mod tidy + - go generate ./... + builds: - env: - CGO_ENABLED=0 @@ -6,17 +14,24 @@ builds: - linux - darwin ldflags: - - -s -w - -X main.version={{.Version}} -nfpms: - - maintainer: "kratix@syntasso.io" - homepage: https://github.com/syntasso/kratix - description: >- - A CLI for building Kratix promises - license: "Apache-2.0" - formats: - - deb - - rpm - - apk +archives: + - 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 }} +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^test:" + - "^.github" + - "^.circleci" + - "^test"