Skip to content

Commit

Permalink
Create tetrisaks.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sankalpmh authored Sep 4, 2024
1 parent b753c75 commit a13554e
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/tetrisaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Deploy to AKS

on:
push:
branches:
- main # 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

0 comments on commit a13554e

Please sign in to comment.