Skip to content

container-tools/microshift-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

MicroShift OpenShift Cluster Action

Test

A GitHub Action for starting an OpenShift cluster using MicroShift.

Supported runners

Right now, this action only supports the following GitHub-hosted runner:

  • ubuntu-20.04

Usage

Pre-requisites

Create a workflow YAML file in your .github/workflows directory. An example workflow is available below. For more information, reference the GitHub Docs for Understanding GitHub Actions.

Inputs

For more information on inputs, see the API Documentation.

  • version: The MicroShift version to use (default: latest version)

Example Workflow

Create a workflow (eg: .github/workflows/create-cluster.yml):

name: Create Cluster

on: pull_request

jobs:
  create-cluster:
    runs-on: ubuntu-latest
    steps:
      - name: MicroShift OpenShift Cluster
        uses: container-tools/microshift-action@v0.3

This uses @container-tools/microshift-action GitHub Action to spin up a MicroShift OpenShift cluster on every Pull Request.