File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change 1- name : staging cicd
1+ name : CI/CD for Staging
22
33on :
44 push :
2525 env :
2626 NETRC_FILE_CONTENT : ${{ secrets.NETRC_FILE_CONTENT }}
2727
28+ - name : Install kubectl
29+ run : |
30+ curl -LO "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl"
31+ chmod +x ./kubectl
32+ sudo mv ./kubectl /usr/local/bin/kubectl
33+
34+ - name : Azure Login
35+ uses : azure/login@v1
36+ with :
37+ creds : ${{ secrets.AZURE_CREDENTIALS }}
38+
39+ - name : Set up AKS context
40+ run : |
41+ az aks get-credentials --resource-group lititRG --name litit-aks
42+
2843 - name : Authenticate with Azure ACR
2944 uses : azure/docker-login@v1
3045 with :
4459 env :
4560 ACCESS_TOKEN_STAGING : ${{ secrets.ACCESS_TOKEN_STAGING }}
4661
62+ - name : Restart Kubernetes deployment
63+ run : |
64+ kubectl rollout restart deployment content -n dev
65+
4766 - name : Send Slack notification
4867 run : |
4968 # Add your Slack notification logic here
You can’t perform that action at this time.
0 commit comments