n0npax / actions-setup-minikube

Set up your GitHub Actions workflow with a specific version of Minikube and Kuberentes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup Minikube GitHub Action

Set up your GitHub Actions workflow with a specific version of Minikube and Kubernetes.

Currently only Linux Ubuntu 18.04 CI environment is supported.

Usage

Basic

name: Example workflow

on: [push]

jobs:
  example:
    name: Example Minikube-Kubernetes Cluster interaction
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v1
      - name: Setup Minikube
        uses: manusa/actions-setup-minikube@v2.0.0
        with:
          minikube version: 'v1.9.2'
          kubernetes version: 'v1.18.2'
          github token: ${{ secrets.GITHUB_TOKEN }}
      - name: Interact with the cluster
        run: kubectl get nodes

Required input parameters

Parameter Description
minikube version Minikube version to deploy
kubernetes version Kubernetes version to deploy

Optional input parameters

Parameter Description
github token GITHUB_TOKEN secret value to access GitHub REST API with an unlimited number of requests (optional but recommended)
driver Minikube driver to use. This action supports none (default if not specified) or docker
start args Additional arguments to append to minikube start command

License

The scripts and documentation in this project are released under the Apache 2.0 license.

About

Set up your GitHub Actions workflow with a specific version of Minikube and Kuberentes

License:Apache License 2.0


Languages

Language:JavaScript 100.0%