update sign sed command to include windows zip (#755)

Signed-off-by: Christopher Phillips <christopher.phillips@anchore.com>
This commit is contained in:
Christopher Angelo Phillips 2022-01-19 17:08:04 -05:00 committed by GitHub
parent aebe843c6f
commit c350bd55f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,9 +52,6 @@ builds:
archives: archives:
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}' - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
id: syft id: syft
replacements:
windows: Windows
amd64: x86_64
format_overrides: format_overrides:
- goos: windows - goos: windows
format: zip format: zip
@ -71,7 +68,7 @@ signs:
- '-c' - '-c'
# we should not include the zip artifact, as the artifact is mutated throughout the next macOS notarization step # we should not include the zip artifact, as the artifact is mutated throughout the next macOS notarization step
# note: sed -i is not portable # note: sed -i is not portable
- 'sed "/.*\.zip/d" ${artifact} > tmpfile && mv tmpfile ${artifact} && gpg --output ${signature} --detach-sign ${artifact}' - 'sed "/.*_darwin_.*\.zip/d" ${artifact} > tmpfile && mv tmpfile ${artifact} && gpg --output ${signature} --detach-sign ${artifact}'
- id: syft-macos-signing - id: syft-macos-signing
ids: ids:
- syft-macos - syft-macos