-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish as draft when tag has suffix -draft
Co-authored-by: Brend Smits <brend.smits@philips.com> Signed-off-by: Marco Franssen <marco.franssen@philips.com>
- Loading branch information
1 parent
c4d4dc4
commit 4233703
Showing
4 changed files
with
80 additions
and
2 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -0,0 +1,77 @@ | ||
project_name: slsa-provenance | ||
|
||
before: | ||
hooks: | ||
- go mod tidy | ||
|
||
env: | ||
- CGO_ENABLED=0 | ||
|
||
builds: | ||
- id: binary | ||
dir: cmd/slsa-provenance | ||
goos: | ||
- windows | ||
- darwin | ||
- linux | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
goarm: | ||
- 8 | ||
ldflags: | ||
- "{{ .Env.LDFLAGS }}" | ||
|
||
archives: | ||
- id: archive | ||
format: tar.gz | ||
replacements: | ||
darwin: macOS | ||
files: | ||
- LICENSE* | ||
- README* | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
||
dockers: | ||
- goos: linux | ||
goarch: amd64 | ||
image_templates: | ||
- "philipssoftware/{{ .ProjectName }}:v{{ .Version }}" | ||
- "philipssoftware/{{ .ProjectName }}:{{ .FullCommit }}" | ||
- "ghcr.io/philips-labs/{{ .ProjectName }}:v{{ .Version }}" | ||
- "ghcr.io/philips-labs/{{ .ProjectName }}:{{ .FullCommit }}" | ||
build_flag_templates: | ||
- "--pull" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.title={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.description={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version=v{{.Version}}" | ||
- "--label=org.opencontainers.image.licenses=MIT" | ||
- "--label=org.opencontainers.image.vendor=Koninklijke Philips N.V." | ||
extra_files: | ||
- "Makefile" | ||
- "go.mod" | ||
- "go.sum" | ||
- "cmd" | ||
- "lib" | ||
checksum: | ||
name_template: 'checksums.txt' | ||
|
||
snapshot: | ||
name_template: "{{ .Tag }}-next" | ||
|
||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
- Merge pull request | ||
- Merge branch | ||
|
||
release: | ||
draft: true | ||
prerelease: auto |
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 |
---|---|---|
|
@@ -73,4 +73,5 @@ changelog: | |
- Merge branch | ||
|
||
release: | ||
draft: false | ||
prerelease: auto |
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