forked from karmab/kcli
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1008 Bytes
/
openshift-nightly-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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 }}