use parent dir for notarization zip (#804)

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman 2022-02-07 17:50:48 -05:00 committed by GitHub
parent 2c62651c82
commit b78c90d018
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,10 @@ notarize() {
title "archiving release binary into ${archive_path}"
zip "${archive_path}" "${binary_path}"
parent=$(dirname "$binary_path")
(
cd "${parent}" && zip "${archive_path}" "$(basename ${binary_path})"
)
if [ ! -f "$archive_path" ]; then
exit_with_error "cannot find payload for notarization: $archive_path"