Skip to content
circle

GitHub Action

MicroShift OpenShift Cluster

v0.3.0 Pre-release

MicroShift OpenShift Cluster

circle

MicroShift OpenShift Cluster

Create a MicroShift cluster

Installation

Copy and paste the following snippet into your .yml file.

              

- name: MicroShift OpenShift Cluster

uses: container-tools/microshift-action@v0.3.0

Learn more about this action in container-tools/microshift-action

Choose a version

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.