aca mirgation #3
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
name: Dapr Components CICD | |
on: | |
push: | |
branches: | |
[ main ] | |
paths: | |
- "dapr/components/**" | |
workflow_dispatch: | |
env: | |
AKS_NAMESPACE: nos-poc | |
jobs: | |
apply-dapr-components: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout to the branch | |
uses: actions/checkout@v2 | |
- name: Azure Login | |
uses: azure/login@v1 | |
with: | |
creds: ${{ secrets.AZURE_CREDENTIALS }} | |
- name: Merge AKS Context | |
run: | | |
az aks get-credentials --name ${{ secrets.AZURE_AKS_CLUSTER }} --resource-group ${{ secrets.AZURE_AKS_RESOURCE_GROUP }} | |
- name: Apply Dapr Components | |
run: | | |
cd ./dapr/ | |
chmod +x "./apply-components.sh" | |
./apply-components.sh |