-
Notifications
You must be signed in to change notification settings - Fork 147
56 lines (52 loc) · 1.53 KB
/
hypershift-ci.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
name: HYPERSHIFT-CI
on:
workflow_dispatch:
inputs:
PLAN:
description: 'Plan Name'
required: true
default: ci-hypershift
PARAMFILE:
description: 'paramfile'
required: false
default: openshift-ci-paramfiles/hypershift.yml
EXTRAPARAMS:
description: 'Extra params'
default: ''
PULLSECRET:
description: 'Pull Secret'
required: false
default: /root/openshift_pull.json
VERSION:
description: 'version'
required: false
default: latest
TAG:
description: 'tag'
required: false
default: "4.17"
env:
HOME: /root
PYTHONUNBUFFERED: true
KUBECONFIG: /root/.kcli/clusters/ci-sno/auth/kubeconfig
PLAN: ${{github.event.inputs.PLAN}}
PARAMFILE: ${{github.event.inputs.PARAMFILE}}
EXTRAPARAMS: ${{github.event.inputs.EXTRAPARAMS}}
PULLSECRET: ${{github.event.inputs.PULLSECRET}}
VERSION: ${{github.event.inputs.VERSION}}
TAG: ${{github.event.inputs.TAG}}
jobs:
requirements:
runs-on: u08
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
deploy-hypershift:
needs: requirements
runs-on: u08
steps:
- name: Deploy hypershift cluster
run: kcli create cluster hypershift --paramfile $PARAMFILE -P pull_secret=$PULLSECRET -P version=$VERSION -P tag="$TAG" $EXTRAPARAMS $PLAN --force