-
Notifications
You must be signed in to change notification settings - Fork 145
33 lines (31 loc) · 1.04 KB
/
openshift-nightly-ipv6.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
name: OPENSHIFT-NIGHTLY-IPV6-CI
on:
schedule:
- cron: '23 21 * * *'
env:
HOME: /root
PYTHONUNBUFFERED: true
CLUSTER: ci-ipv6
PULLSECRET: /root/openshift_pull.json
CLUSTERPROFILE: "sample-openshift-ipv6"
EXTRAPARAMS: ""
NETWORK: ipv6-network
NETWORK_CIDR: 2620:52:0:1306::/64
VERSION: stable
TAG: "4.17"
jobs:
deploy-openshift:
if: github.repository == 'karmab/kcli'
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
- name: Deploy network if needed
run: kcli create network -c $NETWORK_CIDR $NETWORK || true
- name: Deploy Openshift on ipv6
run: kcli create cluster openshift -P clusterprofile=$CLUSTERPROFILE -P network=$NETWORK -P pull_secret=$PULLSECRET -P version=$VERSION -P tag="$TAG" $EXTRAPARAMS $CLUSTER --force
- name: Clean everything
if: always()
run: kcli delete plan --yes $CLUSTER