From 0c3ee9aa594227f95693a0af2b9d3bb038cfc605 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Tue, 13 Dec 2022 11:00:40 +0700 Subject: [PATCH] Add goreleaser file --- .gitignore | 2 ++ .goreleaser.yaml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 .gitignore create mode 100644 .goreleaser.yaml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cde0123 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..44a6147 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,44 @@ +before: + hooks: + - go mod tidy +builds: + - env: + - CGO_ENABLED=0 + flags: + - -trimpath + ldflags: + - -s -w + goos: + - linux + - windows + - darwin + goarch: + - 386 + - arm + - mips + - amd64 + - arm64 + goarm: + - 5 + - 6 + - 7 + gomips: + - softfloat + main: ./cmd/ctrld +archives: + - format_overrides: + - goos: windows + format: zip + strip_parent_binary_folder: true + wrap_in_directory: true + files: + - README.md +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:'