-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (42 loc) · 1.52 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
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]
- run: |
openssl genrsa -out ca.key 4096
openssl genrsa -out tls.key 4096
openssl req -x509 -new -sha512 -nodes -key ./ca.key -days 7307 -out ./ca.crt -config ./.github/workflows/ca.conf
openssl req -new -key ./tls.key -out ./tls.csr -config ./.github/workflows/tls.conf
openssl x509 -req -in ./tls.csr -CA ./ca.crt -CAkey ./ca.key \
-CAcreateserial -out ./tls.crt -days 10000 \
-extensions v3_req -extfile ./.github/workflows/tls.conf
- run: helm install mirrord-operator --set license.file.data."license\\.pem"=$MIRRORD_OPERATOR_LICENSE --set operator.disableTelemetries=true --set tls.data."tls\\.key"="$(cat tls.key)" --set tls.data."tls\\.crt"="$(cat tls.crt)" ./mirrord-operator