From 89fe14e1cb048e843f05ee2b83f6ac6c22f38366 Mon Sep 17 00:00:00 2001 From: Romain FIHUE Date: Wed, 3 Jul 2024 13:07:25 +0200 Subject: [PATCH] Add .slsa-goreleaser.yml configuration file --- .slsa-goreleaser.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .slsa-goreleaser.yml diff --git a/.slsa-goreleaser.yml b/.slsa-goreleaser.yml new file mode 100644 index 0000000..a0a15aa --- /dev/null +++ b/.slsa-goreleaser.yml @@ -0,0 +1,24 @@ +# This is an example .goreleaser.yml file with some sensible defaults. +# Make sure to check the documentation at https://goreleaser.com + +# The lines below are called `modelines`. See `:help modeline` +# Feel free to remove those if you don't want/need to use them. +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 fo=cnqoj + +version: 1 + +env: + - CGO_ENABLED=0 + +goos: linux + +goarch: amd64 + +binary: binary-{{ .Os }}-{{ .Arch }} + +ldflags: + - "-X main.Version={{ .Env.VERSION }}" + - "-X main.Commit={{ .Env.COMMIT }}" + - "-X main.CommitDate={{ .Env.COMMIT_DATE }}" + - "-X main.TreeState={{ .Env.TREE_STATE }}" \ No newline at end of file