diff --git a/action.yml b/action.yml index f6b1b90..2077e9e 100644 --- a/action.yml +++ b/action.yml @@ -11,7 +11,7 @@ inputs: namespace: description: "The target namespace ( project )" required: false - default: "" + default: "default" app: description: "The ArvanCloud app to deploy to" required: true diff --git a/entrypoint.sh b/entrypoint.sh index 7eaad01..d9918d1 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -45,6 +45,13 @@ if [ -z "$5" ] (( ERRORS ++ )) fi +if [ "$6" != "default" ] + then + NS="-n $6" + else + NS="" +fi + if [ $ERRORS -ne 0 ] then exit @@ -57,7 +64,6 @@ AUTH="$2" APP="$3" CONTAINER="$4" IMAGE="$5" -NS="$6" echo " -----> Create directory"