forked from karmab/kcli-ztp
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (55 loc) · 1.78 KB
/
lab.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: lab
on:
workflow_dispatch:
inputs:
RUNNER:
description: 'Runner Name'
required: true
default: 'u08'
PLAN:
description: 'Plan Name'
required: true
default: lab
PARAMFILE:
description: 'paramfile'
required: false
default: lab.yml
PULLSECRET:
description: 'pullsecret'
required: false
default: /root/openshift_pull.json
LAUNCH_STEPS:
description: 'launch_steps'
required: false
default: True
DEPLOY_OPENSHIFT:
description: 'deploy_openshift'
required: false
default: True
VERSION:
description: 'version'
required: false
default: stable
TAG:
description: 'tag'
required: false
default: 4.8
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 kcli_plan.yml --paramfile ${{github.event.inputs.PARAMFILE}} -P pullsecret='${{github.event.inputs.PULLSECRET}}' -P launch_steps=${{github.event.inputs.LAUNCH_STEPS}} -P deploy_openshift=${{github.event.inputs.DEPLOY_OPENSHIFT}} -P version='${{github.event.inputs.VERSION}}' -P tag='${{github.event.inputs.TAG}}' ${{github.event.inputs.PLAN}}