Skip to content

Commit

Permalink
Fix chart path
Browse files Browse the repository at this point in the history
  • Loading branch information
utr1903 committed Feb 1, 2024
1 parent 551ab13 commit d3b3842
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/helm_deploy_application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ jobs:
bash ./infra/helm/${{ inputs.application }}/deploy.sh \
--project ${{ secrets.PROJECT }} \
--instance ${{ secrets.INSTANCE }} \
--application ${{ inputs.application }} \
--language ${{ inputs.language }}
- name: Logout of Azure
Expand Down
12 changes: 11 additions & 1 deletion infra/helm/httpserver/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ while (( "$#" )); do
instance="${2}"
shift
;;
--application)
application="${2}"
shift
;;
--language)
language="${2}"
shift
Expand All @@ -35,6 +39,12 @@ if [[ $instance == "" ]]; then
exit 1
fi

# Application
if [[ $application == "" ]]; then
echo -e "Application [--application] is not provided!\n"
exit 1
fi

# Language
if [[ $language == "" ]]; then
echo -e "Language [--language] is not provided!\n"
Expand Down Expand Up @@ -91,4 +101,4 @@ helm upgrade ${httpserver[name]} \
--set mysql.table=${mysql[table]} \
--set otel.exporter="otlp" \
--set otlp.endpoint="${otelcollectors[endpoint]}" \
"./chart"
"./infra/helm/${application}/${language}/chart"

0 comments on commit d3b3842

Please sign in to comment.