Skip to content

Commit

Permalink
packaging: selects docker image target fpr local-build-all.sh (#9767)
Browse files Browse the repository at this point in the history
Signed-off-by: Tradunsky <[email protected]>
  • Loading branch information
Tradunsky authored Dec 30, 2024
1 parent d1dfd83 commit 5b0ff04
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packaging/local-build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ rm -rf "${PACKAGING_OUTPUT_DIR:?}/*"

# Iterate over each target and attempt to build it.
# Verify that an RPM or DEB is created.
jq -cr '.linux_targets[]' "$JSON_FILE_NAME" | while read -r DISTRO
jq -cr '.linux_targets[] | .target' "$JSON_FILE_NAME" | while read -r DISTRO

do
echo "$DISTRO"
echo "DISTRO: $DISTRO"
FLB_OUT_DIR="$PACKAGING_OUTPUT_DIR" /bin/bash "$SCRIPT_DIR"/build.sh -d "$DISTRO" "$@"
if [[ -z $(find "${SCRIPT_DIR}/packages/$DISTRO/$PACKAGING_OUTPUT_DIR/" -type f \( -iname "*-bit-*.rpm" -o -iname "*-bit-*.deb" \) | head -n1) ]]; then
echo "Unable to find any binary packages in: ${SCRIPT_DIR}/packages/$DISTRO/$PACKAGING_OUTPUT_DIR"
Expand Down

0 comments on commit 5b0ff04

Please sign in to comment.