-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (35 loc) · 1.07 KB
/
simplebiloute.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
name: simplebiloute
on:
workflow_dispatch:
inputs:
RUNNER:
description: 'Runner Name'
required: true
default: 'twix'
PLAN:
description: 'Plan Name'
required: true
default: simplebiloute
MOTD:
description: 'motd'
required: false
default: Welcome to my home
env:
HOME: /root
jobs:
requirements:
runs-on: ${{github.event.inputs.RUNNER}}
steps:
- uses: actions/checkout@v2
- 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: ${{github.event.inputs.RUNNER}}
steps:
- name: Deploy kcli plan
run: kcli create plan --force -f samples/ghactions/kcli_plan.yml -P motd='${{github.event.inputs.MOTD}}' ${{github.event.inputs.PLAN}}