Skip to content

Commit

Permalink
add helm command to deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
esmaeilram committed Jun 22, 2022
1 parent 9ffb8fc commit 3bd59df
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@ gcloud auth activate-service-account --key-file /tmp/google_credentials.json
export XDG_DATA_HOME=/helm3home
helm repo add gcs-repo "$INPUT_GCS_HELM_REPO"
helm repo update
if [ $INPUT_HELM_VERSION == '3.9.0' ]
then
helm_command_array=($(eval "echo $INPUT_HELM_COMMAND"))
declare -a 'helm_args_array=('"$INPUT_HELM_ARGS"')'
helm "${helm_command_array[@]}" "${helm_args_array[@]}"
else
echo "helm version $INPUT_HELM_VERSION unsupported"
exit 1
fi

0 comments on commit 3bd59df

Please sign in to comment.