-
Notifications
You must be signed in to change notification settings - Fork 7
95 lines (83 loc) · 2.86 KB
/
chart_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
87
88
89
90
91
92
93
94
95
name: Chart deployment test
on:
pull_request:
paths:
- "charts/**"
env:
DOCKER_BUILDKIT: 1
jobs:
deploy:
name: deployment test
runs-on: ubuntu-latest
strategy:
matrix:
version: ["1.26", "1.27"]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Helm
uses: azure/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Initialise k3d
run: bash .github/integration/scripts/charts/k3d.sh ${{matrix.version}}
shell: bash
- name: debug
if: failure()
run: k3d version list k3s | grep ${{matrix.version}}
shell: bash
- name: build postgres
shell: bash
run: |
cd postgresql
docker build -t ghcr.io/${{ github.repository }}:test-postgres .
- name: build rabbitmq
shell: bash
run: |
cd rabbitmq
docker build -t ghcr.io/${{ github.repository }}:test-rabbitmq .
- name: build sda
shell: bash
run: |
cd sda
docker build -t ghcr.io/${{ github.repository }}:test .
- name: build sda-auth
shell: bash
run: |
cd sda-auth
docker build -t ghcr.io/${{ github.repository }}:test-auth .
- name: build sda-download
shell: bash
run: |
cd sda-download
docker build -t ghcr.io/${{ github.repository }}:test-download .
- name: build sda-pipeline
shell: bash
run: |
cd sda-pipeline
docker build -t ghcr.io/${{ github.repository }}:test-pipeline .
- name: Import images to cluster
run: k3d image import ghcr.io/${{ github.repository }}:test-postgres ghcr.io/${{ github.repository }}:test-rabbitmq ghcr.io/${{ github.repository }}:test ghcr.io/${{ github.repository }}:test-auth ghcr.io/${{ github.repository }}:test-download ghcr.io/${{ github.repository }}:test-pipeline -c sda
- name: Deploy external services
run: bash .github/integration/scripts/charts/dependencies.sh
shell: bash
- name: Deploy DB
run: bash .github/integration/scripts/charts/deploy_charts.sh sda-db
- name: Deploy MQ
run: bash .github/integration/scripts/charts/deploy_charts.sh sda-mq
shell: bash
- name: Deploy pipeline
run: bash .github/integration/scripts/charts/deploy_charts.sh sda-svc
shell: bash
- name: test
if: always()
run: |
kubectl get secret broker-sda-mq -o json
kubectl get secret pipeline-sda-svc-mapper -o json
kubectl get pods
echo "describe mapper" && kubectl describe pod -l role=mapper
sleep 1
echo "logs mapper" && kubectl logs -l role=mapper
sleep 1
echo "describe broker" && kubectl logs -l role=broker
shell: bash