Skip to content

Commit

Permalink
Fix namespace problem
Browse files Browse the repository at this point in the history
  • Loading branch information
hatamiarash7 committed Dec 22, 2022
1 parent 4930375 commit 634f82f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -57,7 +64,6 @@ AUTH="$2"
APP="$3"
CONTAINER="$4"
IMAGE="$5"
NS="$6"

echo " -----> Create directory"

Expand Down

0 comments on commit 634f82f

Please sign in to comment.