From 9befa5bea68ab1ac551ac6e0bd6d930b0d32db41 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 16 Apr 2022 14:43:05 +0200 Subject: [PATCH] Add goreleaser configuration --- .gitignore | 1 + .goreleaser.yaml | 65 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 .goreleaser.yaml diff --git a/.gitignore b/.gitignore index c438f58..c4fadf7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ *.pem *.pub .idea/ +dist/ \ No newline at end of file diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..4604170 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,65 @@ +# This is an example .goreleaser.yml file with some sensible defaults. +# Make sure to check the documentation at https://goreleaser.com +project_name: cacert-gosigner +env: + - CGO_ENABLED=1 +before: + hooks: + # You may remove this if you don't use go modules. + - go mod tidy +builds: + - id: linux-amd64 + main: ./cmd/signer + binary: cacert-gosigner + goos: + - linux + goarch: + - amd64 + env: + - CC=x86_64-linux-gnu-gcc + - CXX=x86_64-linux-gnu-g++ + - id: linux-arm64 + main: ./cmd/signer + binary: cacert-gosigner + goos: + - linux + goarch: + - arm64 + goarm: + - "9" + env: + - CC=aarch64-linux-gnu-gcc + - CXX=aarch64-linux-gnu-g++ + - PKG_CONFIG_PATH=/usr/aarch64-linux-gnu/pkgconfig + - id: linux-armhf + main: ./cmd/signer + binary: cacert-gosigner + goos: + - linux + goarch: + - arm + goarm: + - "7" + env: + - CC=arm-linux-gnueabihf-gcc + - CXX=arm-linux-gnueabihf-g++ + - PKG_CONFIG_PATH=/usr/arm-linux-gnueabihf/pkgconfig +archives: + - id: cacert-gosigner + builds: + - linux-amd64 + - linux-arm64 + - linux-armhf + name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" + format: tar.gz + wrap_in_directory: "true" +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'