Skip to content

Commit

Permalink
[CI] Update build-package-bundle.sh to check for presence of time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corneil du Plessis committed Sep 11, 2024
1 parent 3d2eafb commit 914cbe9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/actions/build-package-bundle/build-package-bundle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,17 @@ check_env IMGPKG_LOCK_TEMPLATE
check_env VENDIR_SRC_IN

echo "Build Package Bundle: $PACKAGE_BUNDLE_TEMPLATE package.name=$PACKAGE_NAME, server.repository=$SERVER_REPOSITORY, server.version=$SERVER_VERSION,skipper.repository=$SKIPPER_REPOSITORY, skipper.version=$SKIPPER_VERSION, output=$PACKAGE_BUNDLE_GENERATED"

set +e
time ls > /dev/null 2>&1
RC=$?
if((RC=0)); then
MEASURE="time -v -o times.txt -a"
else
MEASURE=""
fi
set -e
echo "ytt -f $PACKAGE_BUNDLE_TEMPLATE" > times.txt
MEASURE="time -v -o times.txt -a"

$MEASURE ytt -f "$PACKAGE_BUNDLE_TEMPLATE" \
--output-files "$PACKAGE_BUNDLE_GENERATED" \
--data-value-yaml server.version="$SERVER_VERSION" \
Expand Down

0 comments on commit 914cbe9

Please sign in to comment.