Skip to content

Trigger workflow rerun #5

Trigger workflow rerun

Trigger workflow rerun #5

Workflow file for this run

name: Minikube CI Pipeline
on:
push:
branches:
- main
jobs:
test-on-minikube:
runs-on: ubuntu-22.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
KUBECTL_VERSION=$(curl -L -s https://dl.k8s.io/release/stable.txt)
curl -LO https://dl.k8s.io/release/${KUBECTL_VERSION}/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/
echo "Waiting for deployment rollout..."
kubectl rollout status deployment/hello-app || (kubectl describe deployment hello-app && kubectl get pods && kubectl describe pods && exit 1)
kubectl get all
- name: Stop Minikube
if: always()
run: minikube stop