-
Notifications
You must be signed in to change notification settings - Fork 1
79 lines (70 loc) · 3.02 KB
/
test.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: 🧪 Test
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 🔔 Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: ⚙️ Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: 🪝 Install Helm
uses: azure/setup-helm@v1
with:
version: v3.10.3
- name: 📦 Add Helm dependency repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo update
- name: 🧪 Run chart-linting
run: |
helm dependency build charts/agh2
helm lint charts/agh2
- name: 🧪 Run chart-testing -> internal mode (default)
run: |
helm dependency build charts/agh2
helm template agh charts/agh2 \
--set customRegistrySecret.auth.username='robot$ci-test-lkc-lab+foo' \
--set customRegistrySecret.auth.password='ci-test-9e1e8ee7-edba-49d9-9cae-2dabf522d4d1' \
--set keygen.apiToken='ci-test-f9cef717fa3c' \
--set keygen.accountID='ci-test-50e8e2cc-a1ac-4c8d-85e3-f897be4350a0' \
-n agh
- name: 🧪 Run chart-testing -> internal mode, storage-system only
run: |
helm dependency build charts/agh2
helm template agh charts/agh2 \
--set customRegistrySecret.auth.username='robot$ci-test-lkc-lab+foo' \
--set customRegistrySecret.auth.password='ci-test-9e1e8ee7-edba-49d9-9cae-2dabf522d4d1' \
--set keygen.apiToken='ci-test-f9cef717fa3c' \
--set keygen.accountID='ci-test-50e8e2cc-a1ac-4c8d-85e3-f897be4350a0' \
--set captain.enabled=false \
--set core.enabled=false \
--set exploitmgr.enabled=false \
--set ui.enabled=false \
--set db.helpers.init.dbs.forceProvision=true \
-n agh
- name: 🧪 Run chart-testing -> external mode
run: |
helm dependency build charts/agh2
helm template agh charts/agh2 \
--set customRegistrySecret.auth.username='robot$ci-test-lkc-lab+foo' \
--set customRegistrySecret.auth.password='ci-test-9e1e8ee7-edba-49d9-9cae-2dabf522d4d1' \
--set keygen.apiToken='ci-test-f9cef717fa3c' \
--set keygen.accountID='ci-test-50e8e2cc-a1ac-4c8d-85e3-f897be4350a0' \
--set db.connection.type=external \
--set db.internal.enabled=false \
--set db.connection.host='db.ci-test.example.com' \
--set db.connection.password='ci-test-b29cb508-15e6-4a08-a389-1e1f21cbc911' \
--set minio.connection.type=external \
--set minio.internal.enabled=false \
--set minio.connection.host='minio.ci-test.example.com' \
--set captain.secret.minio.password='ci-test-db6fb8ad' \
--set core.secret.minio.password='ci-test-5b5b9b5c' \
-n agh