Fix: corrected deployment name to hello-app #3
This file contains hidden or 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: Minikube CI Pipeline | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| test-on-minikube: | |
| runs-on: ubuntu-22.04 # 👈 More stable than 24.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Install Minikube and Kubectl | |
| run: | | |
| curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 | |
| sudo install minikube-linux-amd64 /usr/local/bin/minikube | |
| curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" | |
| chmod +x kubectl | |
| sudo mv kubectl /usr/local/bin/ | |
| - name: Start Minikube with Docker driver | |
| run: | | |
| sudo apt-get update && sudo apt-get install -y conntrack | |
| minikube start --driver=docker | |
| kubectl get pods -A | |
| - name: Apply Kubernetes manifests | |
| run: | | |
| kubectl apply -f k8s/ | |
| kubectl rollout status deployment/hello-app | |
| kubectl get all | |
| - name: Stop Minikube | |
| if: always() | |
| run: minikube stop |