Skip to content

Commit

Permalink
slsa releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
kgersen committed Nov 24, 2022
1 parent 044ba7b commit d30366d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 66 deletions.
30 changes: 0 additions & 30 deletions .github/workflow/goreleaser.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .goreleaser.yaml

This file was deleted.

36 changes: 36 additions & 0 deletions .slsa-goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Version for this file.
version: 1

# (Optional) List of env variables used during compilation.
env:
- GO111MODULE=on
- CGO_ENABLED=0

# (Optional) Flags for the compiler.
flags:
- -trimpath
- -tags=netgo

# The OS to compile for. `GOOS` env variable will be set to this value.
goos: linux

# The architecture to compile for. `GOARCH` env variable will be set to this value.
goarch: amd64

# (Optional) Entrypoint to compile.
# main: ./path/to/main.go

# (Optional) Working directory. (default: root of the project)
# dir: ./relative/path/to/dir

# Binary output name.
# {{ .Os }} will be replaced by goos field in the config file.
# {{ .Arch }} will be replaced by goarch field in the config file.
binary: binary-{{ .Os }}-{{ .Arch }}

# (Optional) ldflags generated dynamically in the workflow, and set as the `evaluated-envs` input variables in the workflow.
# 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 d30366d

Please sign in to comment.