-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (77 loc) · 3.4 KB
/
agh3-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
80
81
82
83
84
85
86
name: ⚙️ [AGH3] 🧪 Test
on:
pull_request:
branches:
- main
paths:
- charts/agh3/**
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 "$GITHUB_ACTOR@users.noreply.github.com"
- 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 add lkclab https://charts.lkc-lab.com
helm repo update
- name: 🧪 Run chart-linting
run: |
helm dependency build charts/agh3
helm lint charts/agh3
- name: 🧪 Run chart-testing -> internal mode (default)
run: |
helm dependency build charts/agh3
helm template agh charts/agh3 \
--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/agh3
helm template agh charts/agh3 \
--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 controller.enabled=false \
--set ui.enabled=false \
--set report.enabled=false \
--set db.helpers.init.dbs.forceProvision=true \
-n agh
- name: 🧪 Run chart-testing -> external mode
run: |
helm dependency build charts/agh3
helm template agh charts/agh3 \
--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 rabbitmq.connection.type=external \
--set rabbitmq.internal.enabled=false \
--set rabbitmq.connection.host='rabbitmq.ci-test.example.com' \
--set rabbitmq.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