OPENSHIFT-NIGHTLY-CI #1109
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |