Skip to content

Commit

Permalink
Update cicd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
san360 authored Apr 21, 2024
1 parent dd1170f commit f8d6d18
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,18 @@ jobs:
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Get AKS Credentials
run: |
az aks get-credentials --resource-group ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} --name ${{ secrets.AKS_NAME }}
- name: Setup kubelogin
uses: azure/use-kubelogin@v1
with:
kubelogin-version: 'v0.0.24'
- name: Set AKS context
id: set-context
uses: azure/aks-set-context@v3
with:
resource-group: '${{ secrets.AZURE_RESOURCE_GROUP_NAME }}'
cluster-name: '${{ secrets.AKS_NAME }}'
admin: 'false'
use-kubelogin: 'true'
- name: Apply Kubernetes Configuration
run: |
envsubst < manifests/staging-app.yaml | kubectl apply -f -
Expand Down Expand Up @@ -98,9 +103,18 @@ jobs:
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Get AKS Credentials
run: |
az aks get-credentials --resource-group ${{ secrets.AZURE_RESOURCE_GROUP_NAME }} --name ${{ secrets.AKS_NAME }}
- name: Setup kubelogin
uses: azure/use-kubelogin@v1
with:
kubelogin-version: 'v0.0.24'
- name: Set AKS context
id: set-context
uses: azure/aks-set-context@v3
with:
resource-group: '${{ secrets.AZURE_RESOURCE_GROUP_NAME }}'
cluster-name: '${{ secrets.AKS_NAME }}'
admin: 'false'
use-kubelogin: 'true'
- name: Apply Kubernetes Configuration
run: |
envsubst < manifests/app.yaml | kubectl apply -f -
Expand Down

0 comments on commit f8d6d18

Please sign in to comment.