-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix/ct-values-first
Signed-off-by: Jesse Hitch <[email protected]>
- Loading branch information
Showing
14 changed files
with
266 additions
and
114 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 |
---|---|---|
|
@@ -2,27 +2,39 @@ name: Lint and Test Charts | |
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '.github/**' | ||
- 'charts/**/README.md' | ||
- 'CODE_OF_CONDUCT.md' | ||
- 'CONTRIBUTING.md' | ||
- 'LICENSE' | ||
- 'README.md' | ||
|
||
paths: | ||
jobs: | ||
lint-test: | ||
changes: | ||
runs-on: ubuntu-latest-low | ||
|
||
outputs: | ||
src: ${{ steps.changes.outputs.src}} | ||
|
||
steps: | ||
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 | ||
id: changes | ||
continue-on-error: true | ||
with: | ||
filters: | | ||
src: | ||
- 'charts/nextcloud/Chart.yaml' | ||
- 'charts/nextcloud/values.yaml' | ||
- 'charts/nextcloud/templates/**' | ||
lint: | ||
runs-on: ubuntu-22.04 | ||
needs: changes | ||
if: needs.changes.outputs.src != 'false' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v3.5 | ||
uses: azure/setup-helm@v4 | ||
with: | ||
version: v3.11.1 | ||
version: v3.14.4 | ||
|
||
- name: Add dependency chart repos | ||
run: | | ||
|
@@ -44,11 +56,82 @@ jobs: | |
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct lint --target-branch ${{ github.event.repository.default_branch }} | ||
|
||
test-internal-database: | ||
runs-on: ubuntu-22.04 | ||
needs: [changes, lint] | ||
if: needs.changes.outputs.src != 'false' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v4 | ||
with: | ||
version: v3.14.4 | ||
|
||
- name: Add dependency chart repos | ||
run: | | ||
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Create kind cluster | ||
uses: helm/kind-action@v1.8.0 | ||
uses: helm/kind-action@v1.10.0 | ||
if: steps.list-changed.outputs.changed == 'true' | ||
|
||
- name: Run chart-testing (install) | ||
id: install | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: ct install --target-branch ${{ github.event.repository.default_branch }} | ||
|
||
test-postgresql-database: | ||
runs-on: ubuntu-22.04 | ||
needs: [changes, lint] | ||
if: needs.changes.outputs.src != 'false' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@v4 | ||
with: | ||
version: v3.14.4 | ||
|
||
- name: Add dependency chart repos | ||
run: | | ||
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
||
- name: Run chart-testing (list-changed) | ||
id: list-changed | ||
run: | | ||
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }}) | ||
if [[ -n "$changed" ]]; then | ||
echo "changed=true" >> "$GITHUB_OUTPUT" | ||
fi | ||
- name: Create kind cluster | ||
uses: helm/[email protected] | ||
if: steps.list-changed.outputs.changed == 'true' | ||
|
||
- name: Run chart-testing (install) | ||
id: install | ||
if: steps.list-changed.outputs.changed == 'true' | ||
run: | | ||
ct install --target-branch ${{ github.event.repository.default_branch }} \ | ||
--helm-extra-set-args "--set=postgresql.enabled=true --set=postgresql.global.postgresql.auth.password=testing123456 --set=internalDatabase.enabled=false --set=externalDatabase.enabled=True --set=externalDatabase.type=postgresql --set=externalDatabase.password=testing123456" |
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
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
dependencies: | ||
- name: postgresql | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
version: 12.12.10 | ||
version: 15.5.0 | ||
- name: mariadb | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
version: 12.2.9 | ||
version: 18.2.0 | ||
- name: redis | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
version: 17.13.2 | ||
digest: sha256:92fe0891c35c2586cfe3b76154412c188bb75cc0a687e1d771fc4c1cf0f8973d | ||
generated: "2023-11-11T19:19:38.983179104+01:00" | ||
version: 19.5.0 | ||
digest: sha256:4efc098feeb7f4486b7166f1c71b9c54bfee0797663a3339f379d397297303c7 | ||
generated: "2024-06-03T09:51:56.321676+02:00" |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
apiVersion: v2 | ||
name: nextcloud | ||
version: 4.6.3 | ||
appVersion: 28.0.2 | ||
version: 5.2.3 | ||
appVersion: 29.0.3 | ||
description: A file sharing server that puts the control and security of your own data back into your hands. | ||
keywords: | ||
- nextcloud | ||
|
@@ -23,14 +23,14 @@ maintainers: | |
email: [email protected] | ||
dependencies: | ||
- name: postgresql | ||
version: 12.12.* | ||
version: 15.5.0 | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
condition: postgresql.enabled | ||
- name: mariadb | ||
version: 12.2.* | ||
version: 18.2.0 | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
condition: mariadb.enabled | ||
- name: redis | ||
version: 17.13.* | ||
version: 19.5.0 | ||
repository: oci://registry-1.docker.io/bitnamicharts | ||
condition: redis.enabled |
Oops, something went wrong.