Files
demo-arun-01/.github/workflows/deploy-and-test-cluster.yml
Scaffolder 30e82f2f1b initial commit
Change-Id: I58bad5c721b60ac6399d97b24e327042af3bf598
2026-07-20 16:22:29 +00:00

32 lines
673 B
YAML

name: Deploy and Test Cluster
on:
push:
branches: [main]
paths:
- 'k8s/**'
pull_request:
branches: [main]
paths:
- 'k8s/**'
jobs:
deploy-and-test-cluster:
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v2
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
- name: Deploy application
run: |
kubectl apply -f k8s/
- name: Wait for Pods to be ready
run: |
kubectl wait --for=condition=ready pod -l app=demo-db --timeout=180s
kubectl wait --for=condition=ready pod -l app=petclinic --timeout=180s