-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (46 loc) · 1.78 KB
/
ci.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
name: CI
on:
workflow_dispatch:
push:
branches: [main]
paths:
- "**.yaml"
- "**.tpl"
pull_request:
branches: [main]
paths:
- "**.yaml"
- "**.tpl"
jobs:
sanity:
runs-on: ubuntu-latest
name: helm-sanity debug
steps:
- uses: actions/checkout@v4
- uses: azure/[email protected]
- run: helm template mirrord-operator --set license.key=secret --debug
operator-install:
runs-on: ubuntu-latest
name: helm install & check install
steps:
- uses: actions/checkout@v4
- name: start minikube
uses: medyagh/setup-minikube@master
with:
container-runtime: ${{ inputs.container-runtime }}
cpus: 'max'
memory: '4gb'
- uses: azure/[email protected]
- name: prepare custom namespaces for `test_values/operator_rolenamespaces.yaml`
run: kubectl create namespace namespace1 && kubectl create namespace namespace2
- name: check installing the chart with various `values` yamls
run: ./test_values_files.sh
- name: install the chart
run: helm install mirrord-operator --set license.file.data."license\\.pem"=$MIRRORD_OPERATOR_LICENSE --set operator.disableTelemetries=true --set operator.podAnnotations."annotation\.metalbear\.co/name"="operator" --set operator.podAnnotations."annotation\.metalbear\.co/version"="latest" --set operator.podLabels."label\.metalbear\.co/name"="operator" --set operator.podLabels."label\.metalbear\.co/version"="latest" ./mirrord-operator --wait
- name: wait for the operator status
uses: nick-fields/retry@v3
with:
timeout_seconds: 10
max_attempts: 5
retry_wait_seconds: 1
command: kubectl get mirrordoperators.operator.metalbear.co operator -o yaml