Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish stage 3 SDK tarball to use as a seed instead of stage 4 #2291

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions bootstrap_sdk
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ cp "${BUILD_LIBRARY_DIR}/toolchain_util.sh" "${ROOT_OVERLAY}/tmp"

catalyst_build

if [[ "$STAGES" =~ stage4 ]]; then
def_upload_path="${UPLOAD_ROOT}/sdk/${ARCH}/${FLAGS_version}"

if [[ $STAGES =~ stage3 ]]; then
info "Build complete! Changing output name to something more sensible."
build_name="stage4-${ARCH}-${FLAGS_version}.tar.bz2"
build_name="stage3-${ARCH}-${FLAGS_version}.tar.bz2"
release_name="${TYPE}-${ARCH}-${FLAGS_version}.tar.bz2"
build_image="${BUILDS}/${build_name}"
release_image="${BUILDS}/${release_name}"
Expand All @@ -109,9 +111,11 @@ if [[ "$STAGES" =~ stage4 ]]; then

info "SDK ready: ${release_image}"

def_upload_path="${UPLOAD_ROOT}/sdk/${ARCH}/${FLAGS_version}"
sign_and_upload_files "tarball" "${def_upload_path}" "" \
"${release_image}" "${release_contents}" "${release_digests}"
fi

if [[ $STAGES =~ stage4 ]]; then
sign_and_upload_files "packages" "${def_upload_path}" "pkgs/" \
"${BINPKGS}"/*

Expand Down
Loading