lab-ztp-nightly #305
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: 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 |