Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
Added goreleaser for testing #6386
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasdille committed Jun 22, 2023
1 parent 048d324 commit aeaae75
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ tools/*/sbom.json
report.txt
/docker-setup
/bin/docker-setup*
coverage.*
coverage.*
dist/
45 changes: 45 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
project_name: docker-setup

before:
hooks:
- go mod tidy

builds:
- main: ./cmd/docker-setup
binary: docker-setup
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{.Version}}
goos:
- linux
goarch:
- amd64
- arm64

sboms:
- id: foo
cmd: syft
args: [ "${artifact}", "--output", "cyclonedx-json", "--file", "$document" ]
documents:
- ${artifact}.cyclonedx.json

archives:
- format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

release:
draft: true

0 comments on commit aeaae75

Please sign in to comment.