Skip to content

Commit

Permalink
Spread env support for workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmellos committed May 21, 2022
1 parent d17b2b7 commit efe183d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/helm-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ jobs:
- name: Deploy
uses: WyriHaximus/github-action-helm3@v2
with:
exec: helm upgrade '${{ inputs.APP_NAME }}' ${{ inputs.CHART_PATH }} --install --create-namespace --namespace=${{ inputs.NAMESPACE }} -f=${{ inputs.CHART_PATH }}/values/${{ inputs.ENVIRONMENT}}/${{ inputs.CLOUD_PROVIDER }}/values_${{ inputs.REGION }}_${{ inputs.CLUSTER_NAME }}.yaml
exec: helm upgrade '${{ inputs.APP_NAME }}' ${{ inputs.CHART_PATH }} --install --create-namespace --namespace=${{ inputs.NAMESPACE }} -f=${{ inputs.CHART_PATH }}/values/${{ inputs.ENVIRONMENT }}/${{ inputs.CLOUD_PROVIDER }}/values_${{ inputs.REGION }}_${{ inputs.CLUSTER_NAME }}.yaml
kubeconfig: '${{ secrets.KUBECONFIG }}'
5 changes: 4 additions & 1 deletion .github/workflows/helm-remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ on:
CLUSTER_NAME:
required: true
type: string
ENVIRONMENT:
required: true
type: string
secrets:
KUBECONFIG:
required: true
Expand All @@ -58,5 +61,5 @@ jobs:
- name: Deploy
uses: WyriHaximus/github-action-helm3@v2
with:
exec: helm upgrade '${{ inputs.APP_NAME }}' ${{ inputs.CHART_NAME }} --install --create-namespace --namespace=${{ inputs.NAMESPACE }} -f=${{ inputs.APP_NAME }}/values/${{ inputs.CLOUD_PROVIDER }}/values_${{ inputs.REGION }}_${{ inputs.CLUSTER_NAME }}.yaml
exec: helm upgrade '${{ inputs.APP_NAME }}' ${{ inputs.CHART_NAME }} --install --create-namespace --namespace=${{ inputs.NAMESPACE }} -f=${{ inputs.APP_NAME }}/values/${{ inputs.ENVIRONMENT }}/${{ inputs.CLOUD_PROVIDER }}/values_${{ inputs.REGION }}_${{ inputs.CLUSTER_NAME }}.yaml
kubeconfig: '${{ secrets.KUBECONFIG }}'

0 comments on commit efe183d

Please sign in to comment.