-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update Helm chart and workflow for webapp container build - Added postgres operator install - chart-testing enabled with kind installation
- Loading branch information
1 parent
1c21428
commit 0882e94
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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" | ||
|
@@ -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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters