A GitHub Action for starting an OpenShift cluster using MicroShift.
Right now, this action only supports the following GitHub-hosted runner:
ubuntu-20.04
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.
For more information on inputs, see the API Documentation.
version
: The MicroShift version to use (default: latest version)
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/[email protected]
This uses @container-tools/microshift-action GitHub Action to spin up a MicroShift OpenShift cluster on every Pull Request.