Update tetrisaks.yml #4
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: Deploy to AKS | |
on: | |
push: | |
branches: | |
- master # Set the branch you want to trigger the deployment on | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Kubernetes CLI | |
uses: azure/setup-kubectl@v1 | |
- name: Set up Kubeconfig | |
run: | | |
echo "${{ secrets.KUBE_CONFIG_DATA }}" | base64 -d > $HOME/.kube/config | |
- name: Deploy manifests | |
run: | | |
kubectl apply -f k8-manifest/k8-deployment.yaml | |
kubectl apply -f k8-manifest/k8-service.yaml | |
kubectl apply -f k8-manifest/metrics-server.yaml | |
kubectl apply -f k8-manifest/tetris-hpa.yaml | |
- name: Verify Deployment | |
run: | | |
kubectl rollout status deployment/tetris-deployment | |
kubectl get pods |