-
Notifications
You must be signed in to change notification settings - Fork 147
50 lines (45 loc) · 1.38 KB
/
sno-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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: SNO-NIGHTLY-CI
on:
schedule:
- cron: '01 21 * * *'
env:
HOME: /root
PYTHONUNBUFFERED: true
CLUSTER: ci-sno
PULLSECRET: /root/openshift_pull.json
PARAMFILE: openshift-ci-paramfiles/sno.yml
VERSION: stable
TAG: "4.17"
jobs:
requirements:
if: github.repository == 'karmab/kcli'
runs-on: u08
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: Delete old install
run: kcli -C local delete cluster --yes $CLUSTER || true
deploy-baremetal-like-vm:
needs: requirements
runs-on: u08
steps:
- name: Deploy Baremetal like vm
run: |
kcli -C local create vm -P uefi=true -P boot_order=true -P start=false -P memory=32768 -P numcpus=16 -P disks=[50,100] -P nets=[baremetalfake] -P plan=$CLUSTER -P kube=$CLUSTER -P kubetype=openshift $CLUSTER
deploy-openshift:
needs: deploy-baremetal-like-vm
runs-on: u08
steps:
- name: Deploy SNO
run: |
kcli create cluster openshift --paramfile $PARAMFILE -P pull_secret=$PULLSECRET -P version=$VERSION -P tag="$TAG" -P sno_disk=vdb $CLUSTER
# clean-up:
# needs: deploy-openshift
# runs-on: u08
# steps:
# - name: Clean everything after success
# run: kcli -C local delete plan --yes $CLUSTER