KUBEADM-NIGHTLY-CI #645
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: KUBEADM-NIGHTLY-CI | |
on: | |
schedule: | |
- cron: '02 21 * * *' | |
env: | |
HOME: /root | |
PYTHONUNBUFFERED: true | |
CLUSTER: ci-kubeadm | |
CLUSTERPROFILE: sample-kubeadm-default | |
EXTRAPARAMS: "" | |
jobs: | |
deploy-kubeadm: | |
if: github.repository == 'karmab/kcli' | |
runs-on: libvirt | |
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: Deploy Kubeadm on libvirt | |
run: kcli create cluster generic -P clusterprofile=$CLUSTERPROFILE $EXTRAPARAMS $CLUSTER --force | |
- name: Clean everything after success | |
run: kcli delete cluster --yes $CLUSTER |