Skip to content

Commit

Permalink
revert temporary
Browse files Browse the repository at this point in the history
  • Loading branch information
adolsalamanca committed Sep 14, 2023
1 parent 9ae03b2 commit 9eb1e27
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,23 @@ jobs:

- name: Helm Upgrade
run: |
region_values=''
if [[ -e "./${{ inputs.chart_path }}/values/${{ inputs.env }}-${{ inputs.region }}.yaml" ]]; then
region_values=--values=./${{ inputs.chart_path }}/values/${{ inputs.env }}-${{ inputs.region }}.yaml
fi
standard_values=''
if [[ "${{inputs.helm_inject_standard_deploy_values}}" == "true" ]]; then
standard_values="--set-string imageName=${{ inputs.registry }} --set-string imageTag=${{ inputs.tag }} --set-string deployment.region=${{ inputs.region }}"
fi
helm upgrade ${{ inputs.chart_name }} ${{ inputs.chart_path }} --install --wait --atomic --cleanup-on-fail \
--kubeconfig=./kubeconfig_${{ inputs.env }}_${{ inputs.region }} \
--namespace=${{ inputs.chart_namespace }} \
--values=./${{ inputs.chart_path }}/values/${{ inputs.env }}.yaml \
--timeout ${{ inputs.helm_timeout }} \
${region_values} \
${standard_values} \
${{ inputs.helm_ext_args }}
region_values=''
if [[ -e "./${{ inputs.chart_path }}/values/${{ inputs.env }}-${{ inputs.region }}.yaml" ]]; then
region_values=--values="./${{ inputs.chart_path }}/values/${{ inputs.env }}-${{ inputs.region }}.yaml"
Expand Down

0 comments on commit 9eb1e27

Please sign in to comment.