Update tetrisaks.yml #1
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 # Update this to your desired branch | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up K8s credentials | |
uses: azure/setup-kubectl@v3 | |
with: | |
version: 'latest' | |
- name: Configure Kubeconfig | |
run: echo "${{ secrets.KUBE_CONFIG_DATA }}" | base64 --decode > $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 |