Update actions/setup-dotnet action to v4.1.0 (#331) #1129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: Helm local chart | |
# Controls when the workflow will run | |
on: | |
# Triggers the workflow on push or pull request events but only for the main branch | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_call: | |
inputs: | |
APP_NAME: | |
required: true | |
type: string | |
CHART_PATH: | |
required: true | |
type: string | |
NAMESPACE: | |
required: true | |
type: string | |
CLOUD_PROVIDER: | |
required: true | |
type: string | |
REGION: | |
required: true | |
type: string | |
CLUSTER_NAME: | |
required: true | |
type: string | |
ENVIRONMENT: | |
required: true | |
type: string | |
secrets: | |
KUBECONFIG: | |
required: true | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "deploy" | |
deploy: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: azure/setup-helm@v4 | |
- uses: actions/checkout@v4 | |
- name: helm version | |
run: helm version | |
shell: bash | |
- name: Dependency update | |
run: helm dependency update ./${{ inputs.CHART_PATH }} | |
shell: bash | |
- name: Deploy | |
uses: WyriHaximus/github-action-helm3@v4 | |
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 | |
kubeconfig: '${{ secrets.KUBECONFIG }}' |