-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
161 additions
and
127 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,5 +26,8 @@ bin/ | |
# docker buildx attestation directory | ||
out/ | ||
|
||
# ko sbom directory | ||
sbom/ | ||
|
||
# local binary | ||
podsalsa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,15 @@ | ||
project_name: podsalsa | ||
|
||
before: | ||
hooks: | ||
- go mod tidy | ||
|
||
builds: | ||
- env: | ||
- id: podsalsa | ||
binary: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}' | ||
# set for reproducible builds | ||
mod_timestamp: '{{ .CommitTimestamp }}' | ||
env: | ||
- CGO_ENABLED=0 | ||
goarch: | ||
- amd64 | ||
|
@@ -20,50 +30,71 @@ builds: | |
-X main.BuildTime={{ .Date }} | ||
kos: | ||
- repository: ghcr.io/janfuhrer/podsalsa | ||
- id: podsalsa | ||
build: podsalsa | ||
repository: ghcr.io/janfuhrer/podsalsa | ||
tags: | ||
- '{{.Tag}}' | ||
- '{{ if not .Prerelease }}latest{{ end }}' | ||
# use default base image | ||
base_image: cgr.dev/chainguard/static | ||
labels: | ||
org.opencontainers.image.created: '{{ .Date }}' | ||
org.opencontainers.image.authors: "[email protected]" | ||
org.opencontainers.image.url: "https://github.com/janfuhrer/podsalsa" | ||
org.opencontainers.image.documentation: "https://github.com/janfuhrer/podsalsa" | ||
org.opencontainers.image.source: "https://github.com/janfuhrer/podsalsa" | ||
org.opencontainers.image.version: '{{ .Tag }}' | ||
org.opencontainers.image.revision: '{{ .Commit }}' | ||
org.opencontainers.image.vendor: "janfuhrer" | ||
org.opencontainers.image.licenses: "Apache-2.0" | ||
org.opencontainers.image.title: "Podsalsa" | ||
org.opencontainers.image.description: "Sample application to demonstrate supply chain security." | ||
org.opencontainers.image.base.name: "cgr.dev/chainguard/static" | ||
# use the docker tag without anything additional | ||
bare: true | ||
preserve_import_paths: false | ||
sbom: spdx | ||
sbom: cyclonedx # or spdx | ||
platforms: | ||
# linux/amd64 and linux/arm64 | ||
- all | ||
flags: | ||
- -trimpath | ||
- -tags="netgo" | ||
ldflags: | ||
- >- | ||
-s | ||
-w | ||
-X main.Version={{ .Tag }} | ||
-X main.Commit={{ .Commit }} | ||
-X main.BuildTime={{ .Date }} | ||
# set for reproducible builds | ||
creation_time: '{{ .CommitTimestamp }}' | ||
ko_data_creation_time: '{{.CommitTimestamp}}' | ||
|
||
archives: | ||
- format: tar.gz | ||
# this name template makes the OS and Arch compatible with the results of uname. | ||
name_template: >- | ||
{{ .ProjectName }}_ | ||
{{- title .Os }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
{{- if .Arm }}v{{ .Arm }}{{ end }} | ||
name_template: '{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}' | ||
# use zip for windows archives | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
||
# create sboms for the archives | ||
sboms: | ||
- artifacts: archive | ||
|
||
# create checksum file for the archives | ||
checksum: | ||
name_template: 'checksums.txt' | ||
algorithm: sha256 | ||
|
||
# sign the artifacts | ||
#signs: | ||
# - artifacts: checksum | ||
#docker_signs: | ||
# - artifacts: manifests | ||
|
||
# local build | ||
snapshot: | ||
name_template: "{{ incpatch .Version }}-next" | ||
|
||
# github changelog for new release | ||
changelog: | ||
sort: asc | ||
use: github | ||
filters: | ||
exclude: | ||
- '^test:' | ||
- '^chore:' | ||
- '^rebase:' | ||
- Merge pull request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.