Skip to content

Commit

Permalink
Merge pull request jamestelfer#64 from jamestelfer/release-troublesho…
Browse files Browse the repository at this point in the history
…oting

ci: include signature bundles only in release archives
  • Loading branch information
jamestelfer authored Sep 22, 2024
2 parents 936f0f6 + 9a65f6a commit b8d7da1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ builds:
# If you do this locally, sign with an OAuth identity you don't mind being permanently
# published to a transparency log.
binary_signs:
- signature: '${artifact}_{{ .Os }}_{{ .Arch }}.cosign.bundle'
- id: cosign
signature: '${artifact}.cosign.bundle'
cmd: './ci-only.sh'
args:
- "cosign"
Expand All @@ -36,12 +37,13 @@ checksum:
name_template: "checksums.txt"

archives:
- format: tar.gz
- id: archives
format: tar.gz
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
files:
# cosign produces a bundle file to allow for verification of the artifacts
# this is included in the archive to allow for easier verification after download
- src: '{{ .ArtifactPath }}_{{ .Os }}_{{ .Arch }}.cosign.bundle'
- src: '{{ .ArtifactPath }}.cosign.bundle'
strip_parent: true

changelog:
Expand All @@ -52,6 +54,9 @@ changelog:
release:
disable: "{{ .Env.RELEASE_DISABLE }}"

ids:
- archives

prerelease: auto
header: |
Distributions for this release are published as binaries and a Docker image.
Expand Down

0 comments on commit b8d7da1

Please sign in to comment.