Skip to content

HYPERSHIFT-ASSISTED-NIGHTLY-CI #7

HYPERSHIFT-ASSISTED-NIGHTLY-CI

HYPERSHIFT-ASSISTED-NIGHTLY-CI #7

name: HYPERSHIFT-ASSISTED-NIGHTLY-CI
on:
schedule:
- cron: '59 22 * * *'
env:
HOME: /root
PYTHONUNBUFFERED: true
CLUSTER: ci-hypershift-assisted
PULLSECRET: /root/openshift_pull.json
KUBECONFIG: /root/.kcli/clusters/ci-libvirt/auth/kubeconfig
PARAMFILE: openshift-ci-paramfiles/hypershift_assisted.yml
jobs:
requirements:
if: github.repository == 'karmab/kcli'
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
kcli create sushy-service
- name: Make sc default one
run: |
oc patch storageclass odf-storagecluster-ceph-rbd -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"true"}}}'
- name: Delete old install
run: |
kcli -C local delete cluster --yes $CLUSTER || true
kcli -C local delete plan --yes $CLUSTER-vms || true
deploy-baremetal-like-vms:
needs: requirements
runs-on: libvirt
steps:
- name: Deploy Baremetal like vm
run: |
kcli -C local create vm -P uefi=true -P start=false -P memory=20480 -P numcpus=16 -P disks=['{"size": 200, "interface": "sata"}'] -P nets=['{"name": "baremetalfake", "mac": "aa:aa:aa:bb:bb:80"}'] -P plan=$CLUSTER-vms -P user=core -c 3 $CLUSTER
deploy-hypershift:
needs: deploy-baremetal-like-vms
runs-on: libvirt
steps:
- name: Deploy HYPERSHIFT ASSISTED
run: |
kcli create cluster hypershift --pf $PARAMFILE -P pull_secret=$PULLSECRET $CLUSTER
clean-up:
needs: deploy-hypershift
runs-on: libvirt
steps:
- name: Clean everything after success
run: |
kcli delete cluster --yes $CLUSTER
kcli -C local delete plan --yes $CLUSTER-vms