Skip to content

Commit 7c4c338

Browse files
authored
fix: restore ARTIFACTS_TO_PUBLISH in release.sh to fix nightly releases (#9040)
hack: restore ARTIFACTS_TO_PUBLISH in release.sh to fix nightly releases PR #9018 replaced ARTIFACTS_TO_PUBLISH with a local `artifacts` array, but the vendored knative.dev/hack/release.sh relies on this global variable for image signing, checksums generation, and artifact publishing. With it unset, sign_release() had no files to process, breaking nightly release jobs.
1 parent 7864797 commit 7c4c338

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hack/release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,10 @@ function build_release() {
6666
local YAML_LIST="$(mktemp)"
6767
export TAG
6868
"$(dirname "$0")/generate-yamls.sh" "${REPO_ROOT_DIR}" "${YAML_LIST}"
69-
mapfile -t artifacts < "${YAML_LIST}"
69+
ARTIFACTS_TO_PUBLISH="$(cat "${YAML_LIST}" | tr '\n' ' ')"
7070
if (( ! PUBLISH_RELEASE )); then
7171
# Copy the generated YAML files to the repo root dir if not publishing.
72-
cp "${artifacts[@]}" "${REPO_ROOT_DIR}"
72+
cp ${ARTIFACTS_TO_PUBLISH} "${REPO_ROOT_DIR}"
7373
fi
7474
}
7575

0 commit comments

Comments
 (0)