From 634f3957bc104ad7216d8d9c52820a634cdd75ce Mon Sep 17 00:00:00 2001 From: Rafael Carvalho Date: Wed, 2 Aug 2023 16:47:56 -0300 Subject: [PATCH] feat: add self host option --- entrypoint.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index d0a9197..069c4e4 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -28,6 +28,7 @@ if [[ -n $flags ]]; then sflags="-F $flags" fi +host="" token="" branch="" commit="" @@ -35,6 +36,9 @@ pr="" buildnum="" tag="" +if [[ -n $SELF_HOST ]]; then + host="-u $SELF_HOST" +fi if [[ -n $PLUGIN_TOKEN ]]; then token="-t $PLUGIN_TOKEN" fi @@ -59,10 +63,10 @@ fi if [[ $PLUGIN_DEBUG = "true" ]]; then echo "-- DEBUG: running following command..." - echo "-- DEBUG: codecov $token $sfiles $sflags $branch $commit $pr $buildnum $tag" + echo "-- DEBUG: codecov $host $token $sfiles $sflags $branch $commit $pr $buildnum $tag" fi -exitcode=`codecov -Z $token $sfiles $sflags \ +exitcode=`codecov -Z $host $token $sfiles $sflags \ $branch \ $commit \ $pr \