You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
setup-minikube
v0.0.7
- build/deploy/test your application against a real Kubernetes cluster in GitHub Actions.
- maintained by minikube maintainers.
steps:
- name: start minikube
id: minikube
uses: medyagh/setup-minikube@master
-
minikube-version (optional)
- default: latest
- options:
- version in format of 'X.X.X'
- 'latest' for the latest stable release
- 'HEAD' for the latest development build
- example: 1.24.0
-
driver (optional)
- default: '' (minikube will auto-select)
- options:
- docker
- none (baremetal)
- virtualbox (available on macOS free agents)
- also if installed on agent you can also use:
- podman (if installed)
- parallels
- vmwarefusion
- hyperkit
- vmware
- ssh
-
container-runtime (optional)
- description: Choose a specific container-runtime
- options:
- docker (default)
- containerd
- cri-o
-
kubernetes-version (optional)
- default: stable
- options:
- version in format of 'vX.X.X'
- 'stable' for the latest stable release
- 'latest' for the latest development build
- example: v1.23.1
name: CI
on:
- pull_request
jobs:
job1:
runs-on: ubuntu-latest
name: job1
steps:
- name: start minikube
id: minikube
uses: medyagh/setup-minikube@master
# now you can run kubectl to see the pods in the cluster
- name: kubectl
run: kubectl get pods -A
name: CI
on:
- pull_request
jobs:
job1:
runs-on: ubuntu-latest
name: job1
steps:
- name: start minikube
id: minikube
with:
minikube-version: 1.24.0
driver: docker
container-runtime: containerd
kubernetes-version: v1.22.3
uses: medyagh/setup-minikube@master
# now you can run kubectl to see the pods in the cluster
- name: kubectl
run: kubectl get pods -A
name: CI
on:
- push
- pull_request
jobs:
job1:
runs-on: ubuntu-latest
name: build discover and deploy
steps:
- uses: actions/checkout@v2
- name: Start minikube
uses: medyagh/setup-minikube@master
# now you can run kubectl to see the pods in the cluster
- name: Try the cluster!
run: kubectl get pods -A
- name: Build image
run: |
export SHELL=/bin/bash
eval $(minikube -p minikube docker-env)
make build-image
echo -n "verifying images:"
docker images
- name: Deploy to minikube
run:
kubectl apply -f deploy/deploy-minikube.yaml
- name: Test service URLs
run: |
minikube service list
minikube service discover --url
echo -n "------------------opening the service------------------"
curl $(minikube service discover --url)/version
Medya Ghazizadeh, Follow me on twitter for my dev news!