Skip to content

Commit

Permalink
[CI] Improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
corneil committed Sep 12, 2024
1 parent b842596 commit edc71ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/deploy/carvel/carvel-add-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if [ "$REPO_SECRET_REF" = "" ]; then
fi

echo "Using secretRef=$REPO_SECRET_REF in $PACKAGE_NAME for $PACKAGE"

set -e
kubectl apply --namespace $NS -f - <<EOF
apiVersion: packaging.carvel.dev/v1alpha1
kind: PackageRepository
Expand Down
2 changes: 1 addition & 1 deletion src/deploy/carvel/setup-scdf-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ if [ "$PACKAGE" = "" ]; then
fi
fi
echo "Adding repository for $PACKAGE"
set -e
"$SCDIR/carvel-add-package.sh" "$PACKAGE" "$PACKAGE_NAME" "$NS"

end_time=$(date +%s)
elapsed=$((end_time - start_time))
echo -e "Setup SCDF Carvel Repo in ${bold}$elapsed${end} seconds"

0 comments on commit edc71ff

Please sign in to comment.