Skip to content

Commit

Permalink
Add .slsa-goreleaser.yml configuration file
Browse files Browse the repository at this point in the history
  • Loading branch information
fihuer committed Jul 3, 2024
1 parent c57324f commit 89fe14e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .slsa-goreleaser.yml
Original file line number Diff line number Diff line change
@@ -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 }}"

0 comments on commit 89fe14e

Please sign in to comment.