Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adolsalamanca committed Sep 14, 2023
1 parent 94a6f05 commit 849c0af
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,22 +133,22 @@ jobs:

- name: Helm Upgrade
run: |
region_values=''
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 }}"
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 }}
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 }}"
# Prod - Deploy against all the regions specified in strategy.matrix.region
deploy_all_regions_prod:
Expand Down Expand Up @@ -188,20 +188,20 @@ 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 }}"
fi
helm upgrade ${{ inputs.chart_name }} ${{ inputs.chart_path }} --install --wait --atomic --cleanup-on-fail \
--kubeconfig=./kubeconfig_${{ inputs.env }}_${{ matrix.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 }}
helm upgrade "${{ inputs.chart_name }}" "${{ inputs.chart_path }}" --install --wait --atomic --cleanup-on-fail \
--kubeconfig="./kubeconfig_${{ inputs.env }}_${{ matrix.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 }}"
# Dev - Deploy against all the regions specified in strategy.matrix.region
deploy_all_regions_dev:
Expand Down Expand Up @@ -237,17 +237,17 @@ 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 }}"
fi
helm upgrade ${{ inputs.chart_name }} ${{ inputs.chart_path }} --install --wait --atomic --cleanup-on-fail \
--kubeconfig=./kubeconfig_${{ inputs.env }}_${{ matrix.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 }}
helm upgrade "${{ inputs.chart_name }}" "${{ inputs.chart_path }}" --install --wait --atomic --cleanup-on-fail \
--kubeconfig="./kubeconfig_${{ inputs.env }}_${{ matrix.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 }}"

0 comments on commit 849c0af

Please sign in to comment.