Skip to content

Commit

Permalink
goreleaser init
Browse files Browse the repository at this point in the history
  • Loading branch information
aclevername committed Jul 25, 2024
1 parent 165235f commit e1e001f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
bin/
.idea/

dist/
37 changes: 26 additions & 11 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,37 @@
project_name: kratix-cli

version: 2

before:
hooks:
- go mod tidy
- go generate ./...

builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
ldflags:
- -s -w
- -X main.version={{.Version}}

nfpms:
- maintainer: "[email protected]"
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"

0 comments on commit e1e001f

Please sign in to comment.