Skip to content

OPENSHIFT-NIGHTLY-CI #1109

OPENSHIFT-NIGHTLY-CI

OPENSHIFT-NIGHTLY-CI #1109

name: OPENSHIFT-NIGHTLY-CI
on:
schedule:
- cron: '01 18 * * *'
env:
HOME: /root
PYTHONUNBUFFERED: true
CLUSTER: ci
PULLSECRET: /root/openshift_pull.json
jobs:
deploy-openshift:
if: github.repository == 'karmab/kcli'
strategy:
fail-fast: false
matrix:
provider: [libvirt, vsphere, kubevirt]
runs-on: ${{ matrix.provider }}
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: Delete old install
run: kcli delete cluster --yes $CLUSTER || true
- name: Deploy Openshift on ${{ matrix.provider }}
run: kcli create cluster openshift --paramfile openshift-ci-paramfiles/${{ matrix.provider }}.yml -P pull_secret=$PULLSECRET $CLUSTER-${{ matrix.provider }} --force
# - name: Clean everything
# if: always()
# run: kcli delete cluster --yes $CLUSTER-${{ matrix.provider }}