-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (40 loc) · 1.49 KB
/
build-helm.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
49
50
#
# Copyright contributors to the Galasa project
#
# SPDX-License-Identifier: EPL-2.0
#
name: Helm build (ecosystem1)
on:
workflow_dispatch:
env:
NAMESPACE: galasa-dev
jobs:
build-helm:
name: Build Helm chart for ecosystem1
runs-on: ubuntu-latest
steps:
- name: Checkout Automation repository
uses: actions/checkout@v4
- name: Checkout Helm repository
uses: actions/checkout@v4
with:
repository: ${{ env.NAMESPACE }}/helm
path: helm
- name: Setup helm
uses: azure/[email protected]
with:
version: '3.13.2' # default is latest (stable)
id: install
- name: Setup kubeconfig secret
run: |
mkdir -p $HOME/.kube
echo "${{ secrets.KUBE_CONFIG_PLAN_B_CLUSTER }}" >> $HOME/.kube/config
- name: Uninstall ecosystem1
run: |
helm uninstall main-ecosystem --ignore-not-found --namespace=galasa-ecosystem1 --kubeconfig $HOME/.kube/config
- name: Install ecosystem1
run: |
helm install main-ecosystem ${{ github.workspace }}/helm/charts/ecosystem --namespace=galasa-ecosystem1 --values ${{ github.workspace }}/infrastructure/galasa-plan-b-lon02/galasa-ecosystem1/helm-values.yaml --kubeconfig $HOME/.kube/config --wait
- name: Test ecosystem1
run: |
helm test main-ecosystem --namespace=galasa-ecosystem1 --kubeconfig $HOME/.kube/config