diff --git a/.goreleaser.yml b/.goreleaser.yml index 621cc34ff9b..c6c4c2c3071 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -47,6 +47,17 @@ builds: - amd64 - arm64 + - id: schedule-builder + no_unique_dist_dir: true + main: ./cmd/schedule-builder + binary: schedule-builder-{{ .Arch }}-{{ .Os }} + goos: + - linux + - darwin + goarch: + - amd64 + - arm64 + archives: - format: binary name_template: "{{ .Binary }}" @@ -109,6 +120,22 @@ sboms: documents: - "publish-release-bom.json.spdx" + - id: schedule-builder + cmd: bom + args: + - generate + - "--output" + - "schedule-builder-bom.json.spdx" + - "-d" + - "../" + - "-c" + - "../.schedule-builder-bom-config.yaml" + - "--format" + - "json" + artifacts: any + documents: + - "schedule-builder-bom.json.spdx" + checksum: name_template: 'checksums.txt' diff --git a/.schedule-builder-bom-config.yaml b/.schedule-builder-bom-config.yaml new file mode 100644 index 00000000000..03399bb3bb9 --- /dev/null +++ b/.schedule-builder-bom-config.yaml @@ -0,0 +1,27 @@ +--- +license: Apache-2.0 +name: schedule-builder +creator: + person: The Kubernetes Authors + tool: schedule-builder + +artifacts: + - type: file + source: schedule-builder-amd64-darwin + license: Apache-2.0 + gomodules: true + + - type: file + source: schedule-builder-amd64-linux + license: Apache-2.0 + gomodules: true + + - type: file + source: schedule-builder-arm64-darwin + license: Apache-2.0 + gomodules: true + + - type: file + source: schedule-builder-arm64-linux + license: Apache-2.0 + gomodules: true