-
Notifications
You must be signed in to change notification settings - Fork 261
69 lines (69 loc) · 2.44 KB
/
nightly-install.yaml
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
59
60
61
62
63
64
65
66
67
68
69
name: Nightly Install
on:
schedule:
- cron: "0 0 * * 1-5"
workflow_dispatch: {}
jobs:
test:
name: "Smoke Test"
runs-on: ubuntu-latest
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
channel: [stable]
vm: [centos-7, rocky-8, opensuse-leap, ubuntu-2004, windows-2019, windows-2022]
include:
- {channel: latest, vm: rocky-8}
- {channel: latest, vm: ubuntu-2004}
max-parallel: 2
defaults:
run:
working-directory: tests/install/${{ matrix.vm }}
env:
INSTALL_RKE2_CHANNEL: ${{ matrix.channel }}
steps:
- name: "Checkout"
uses: actions/checkout@v4
with: {fetch-depth: 1}
# Don't cache Windows VMs, they are 5GB each, which would eat our entire 10GB cache
- name: "Vagrant Cache"
if: ${{ !contains(matrix.vm, 'windows') }}
uses: actions/cache@v4
with:
path: |
~/.vagrant.d/boxes
key: vagrant-box-${{ matrix.vm }}
id: vagrant-cache
continue-on-error: true
- name: Set up vagrant and libvirt
uses: ./.github/actions/vagrant-setup
- name: "Vagrant Plugin(s)"
run: vagrant plugin install vagrant-reload vagrant-rke2
- name: "Vagrant Up ⏩ Install RKE2"
run: vagrant up
- name: "⏳ Node"
if: ${{ !contains(matrix.vm, 'windows') }}
run: vagrant provision --provision-with=rke2-wait-for-cp
- name: "⏳ Canal"
if: ${{ !contains(matrix.vm, 'windows') }}
run: vagrant provision --provision-with=rke2-wait-for-canal
continue-on-error: true
- name: "⏳ CoreDNS"
if: ${{ !contains(matrix.vm, 'windows') }}
run: vagrant provision --provision-with=rke2-wait-for-coredns
continue-on-error: true
- name: "⏳ Metrics Server"
if: ${{ !contains(matrix.vm, 'windows') }}
run: vagrant provision --provision-with=rke2-wait-for-metrics-server
continue-on-error: true
- name: "⏳ Ingress NGINX"
if: ${{ !contains(matrix.vm, 'windows') }}
run: vagrant provision --provision-with=rke2-wait-for-ingress-nginx
continue-on-error: true
- name: "rke2-status"
if: ${{ !contains(matrix.vm, 'windows') }}
run: vagrant provision --provision-with=rke2-status
- name: "rke2-procps"
if: ${{ !contains(matrix.vm, 'windows') }}
run: vagrant provision --provision-with=rke2-procps