Skip to content

lab-ztp-nightly

lab-ztp-nightly #336

name: lab-ztp-nightly
on:
schedule:
- cron: '31 2 * * *'
env:
HOME: /root
PYTHONUNBUFFERED: true
PLAN: lab
INPUTFILE: plans/kcli_plan_ztp.yml
PARAMFILE: paramfiles/lab_ztp_ipv6.yml
PULLSECRET: /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 pullsecret=$PULLSECRET $PLAN