Skip to content

Commit

Permalink
Full helm CI/CD testing
Browse files Browse the repository at this point in the history
- Update Helm chart and workflow for webapp container build
- Added postgres operator install
- chart-testing enabled with kind installation
  • Loading branch information
emmanuelmathot committed Nov 6, 2024
1 parent 1c21428 commit 0882e94
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/check_charts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
- '.github/workflows/check_charts.yaml'
pull_request:

env:
PGO_CHART_VERSION: 5.7.0

jobs:
lint-test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -58,12 +61,12 @@ jobs:
- name: Run chart-testing (lint)
run: ct lint --chart-dirs deployment/helm --target-branch ${{ github.event.repository.default_branch }}

- name: Build container
- name: Build webapp container
uses: docker/build-push-action@v6
if: steps.list-changed.outputs.changed == 'true'
with:
platforms: linux/amd64
context: .
context: webapp
file: webapp/Dockerfile
push: false
tags: "polder:dev"
Expand All @@ -72,10 +75,14 @@ jobs:
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'

# Install postgres operator
- name: Install postgres operator
run: helm install --set disable_check_for_upgrades=true pgo oci://registry.developers.crunchydata.com/crunchydata/pgo --version ${PGO_CHART_VERSION}

- name: Load container image in kind cluster
run: kind load docker-image polder:dev --name chart-testing
if: steps.list-changed.outputs.changed == 'true'

- name: Run chart-testing (install)
run: ct install --chart-dirs deployment/k8s
run: ct install --chart-dirs deployment/helm --target-branch ${{ github.event.repository.default_branch }}
if: steps.list-changed.outputs.changed == 'true'
8 changes: 8 additions & 0 deletions deployment/helm/polder/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ version: 0.1.0
# It is recommended to use it with quotes.
appVersion: "0.2.0"

maintainers:
- name: pantierra # Felix Delattre
url: https://github.com/pantierra
- name: emmanuelmathot # Emmanuel Mathot
url: https://github.com/emmanuelmathot
- name: ciaransweet # Ciaran Sweet
url: https://github.com/ciaransweet

dependencies:
- name: eoapi
version: 0.5.0
Expand Down

0 comments on commit 0882e94

Please sign in to comment.