-
Notifications
You must be signed in to change notification settings - Fork 26
34 lines (31 loc) · 951 Bytes
/
lab_nightly.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
name: lab-nightly
on:
schedule:
- cron: '31 19 * * *'
env:
HOME: /root
PYTHONUNBUFFERED: true
PLAN: lab
INPUTFILE: plans/kcli_plan.yml
PARAMFILE: paramfiles/lab_ipv6.yml
PULL_SECRET: /root/openshift_pull.json
jobs:
requirements:
runs-on: libvirt
steps:
- uses: actions/checkout@v3
- run: git pull origin ${GITHUB_REF##*/}
- name: Install kcli
run: |
curl https://raw.githubusercontent.com/karmab/kcli/master/install.sh | bash
# kcli create pool -p /var/lib/libvirt/images default
# sudo setfacl -m u:$(id -un):rwx /var/lib/libvirt/images
deploy-plan:
needs: requirements
runs-on: libvirt
steps:
- name: Deploy kcli plan
run: kcli -c local create plan --force -f $INPUTFILE --paramfile $PARAMFILE -P pull_secret=$PULL_SECRET $PLAN
#- name: Clean up
# if: always()
# run: kcli -c local delete plan --yes $PLAN