Skip to content

Commit

Permalink
fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
adolsalamanca committed Sep 14, 2023
1 parent 6037410 commit a55323c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,11 +135,11 @@ jobs:
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"
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 }}"
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 }}" \
Expand Down Expand Up @@ -188,11 +188,11 @@ jobs:
echo "####### Helm upgrade for ${{ inputs.env }}_${{ matrix.region }} ####### "
region_values=''
if [[ -e "./${{ inputs.chart_path }}/values/${{ inputs.env }}-${{ matrix.region }}.yaml" ]]; then
region_values=--values="./${{ inputs.chart_path }}/values/${{ inputs.env }}-${{ matrix.region }}.yaml"
region_values=--values=./"${{ inputs.chart_path }}/values/${{ inputs.env }}-${{ matrix.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=${{ matrix.region }}"
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 }}_${{ matrix.region }}" \
Expand Down Expand Up @@ -237,11 +237,11 @@ jobs:
echo "####### Helm upgrade for ${{ inputs.env }}_${{ matrix.region }} ####### "
region_values=''
if [[ -e "./${{ inputs.chart_path }}/values/${{ inputs.env }}-${{ matrix.region }}.yaml" ]]; then
region_values=--values="./${{ inputs.chart_path }}/values/${{ inputs.env }}-${{ matrix.region }}.yaml"
region_values=--values=./"${{ inputs.chart_path }}/values/${{ inputs.env }}-${{ matrix.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=${{ matrix.region }}"
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 }}_${{ matrix.region }}" \
Expand Down

0 comments on commit a55323c

Please sign in to comment.