Skip to content

Commit 0882e94

Browse files
Full helm CI/CD testing
- Update Helm chart and workflow for webapp container build - Added postgres operator install - chart-testing enabled with kind installation
1 parent 1c21428 commit 0882e94

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

.github/workflows/check_charts.yaml

+10-3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
- '.github/workflows/check_charts.yaml'
1414
pull_request:
1515

16+
env:
17+
PGO_CHART_VERSION: 5.7.0
18+
1619
jobs:
1720
lint-test:
1821
runs-on: ubuntu-latest
@@ -58,12 +61,12 @@ jobs:
5861
- name: Run chart-testing (lint)
5962
run: ct lint --chart-dirs deployment/helm --target-branch ${{ github.event.repository.default_branch }}
6063

61-
- name: Build container
64+
- name: Build webapp container
6265
uses: docker/build-push-action@v6
6366
if: steps.list-changed.outputs.changed == 'true'
6467
with:
6568
platforms: linux/amd64
66-
context: .
69+
context: webapp
6770
file: webapp/Dockerfile
6871
push: false
6972
tags: "polder:dev"
@@ -72,10 +75,14 @@ jobs:
7275
uses: helm/[email protected]
7376
if: steps.list-changed.outputs.changed == 'true'
7477

78+
# Install postgres operator
79+
- name: Install postgres operator
80+
run: helm install --set disable_check_for_upgrades=true pgo oci://registry.developers.crunchydata.com/crunchydata/pgo --version ${PGO_CHART_VERSION}
81+
7582
- name: Load container image in kind cluster
7683
run: kind load docker-image polder:dev --name chart-testing
7784
if: steps.list-changed.outputs.changed == 'true'
7885

7986
- name: Run chart-testing (install)
80-
run: ct install --chart-dirs deployment/k8s
87+
run: ct install --chart-dirs deployment/helm --target-branch ${{ github.event.repository.default_branch }}
8188
if: steps.list-changed.outputs.changed == 'true'

deployment/helm/polder/Chart.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ version: 0.1.0
1515
# It is recommended to use it with quotes.
1616
appVersion: "0.2.0"
1717

18+
maintainers:
19+
- name: pantierra # Felix Delattre
20+
url: https://github.com/pantierra
21+
- name: emmanuelmathot # Emmanuel Mathot
22+
url: https://github.com/emmanuelmathot
23+
- name: ciaransweet # Ciaran Sweet
24+
url: https://github.com/ciaransweet
25+
1826
dependencies:
1927
- name: eoapi
2028
version: 0.5.0

0 commit comments

Comments
 (0)