Skip to content

HYPERSHIFT-CI

HYPERSHIFT-CI #56

Workflow file for this run

name: HYPERSHIFT-CI
on:
workflow_dispatch:
inputs:
PLAN:
description: 'Plan Name'
required: true
default: ci-hypershift
PARAMFILE:
description: 'paramfile'
required: false
default: openshift-ci-paramfiles/hypershift.yml
EXTRAPARAMS:
description: 'Extra params'
default: ''
PULLSECRET:
description: 'Pull Secret'
required: false
default: /root/openshift_pull.json
VERSION:
description: 'version'
required: false
default: stable
TAG:
description: 'tag'
required: false
default: "4.14"
env:
HOME: /root
PYTHONUNBUFFERED: true
KUBECONFIG: /root/.kcli/clusters/ci-libvirt/auth/kubeconfig
PLAN: ${{github.event.inputs.PLAN}}
PARAMFILE: ${{github.event.inputs.PARAMFILE}}
EXTRAPARAMS: ${{github.event.inputs.EXTRAPARAMS}}
PULLSECRET: ${{github.event.inputs.PULLSECRET}}
VERSION: ${{github.event.inputs.VERSION}}
TAG: ${{github.event.inputs.TAG}}
jobs:
requirements:
runs-on: libvirt
steps:
- uses: actions/checkout@v2
- run: git pull origin ${GITHUB_REF##*/}
- name: Install kcli
run: |
curl https://raw.githubusercontent.com/karmab/kcli/main/install.sh | bash
- name: Make sc default one
run: |
oc patch storageclass odf-storagecluster-ceph-rbd -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
deploy-hypershift-cluster:
needs: requirements
runs-on: libvirt
steps:
- name: Deploy hypershift cluster
run: kcli create cluster hypershift --paramfile $PARAMFILE -P pull_secret=$PULLSECRET -P version=$VERSION -P tag="$TAG" $EXTRAPARAMS $PLAN --force