Skip to content

Commit 6862167

Browse files
authored
Merge pull request #3 from toggle-corp/feat/extra-manifets-as-string
2 parents 3ed0e98 + f736ebc commit 6862167

29 files changed

+6011
-14
lines changed

.github/workflows/helm-publish.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ jobs:
3939
OCI_REPO=$(echo $OCI_REPO | tr '[:upper:]' '[:lower:]')
4040
4141
# Helm
42-
HELM_TARGET_REVISION=$(helm show chart ./toggle-django-helm/ | grep '^version:' | awk '{print $2}')
43-
HELM_CHART=$(helm show chart ./toggle-django-helm/ | grep '^name:' | awk '{print $2}')
42+
HELM_TARGET_REVISION=$(helm show chart ./chart/ | grep '^version:' | awk '{print $2}')
43+
HELM_CHART=$(helm show chart ./chart/ | grep '^name:' | awk '{print $2}')
4444
4545
echo "helm_oci_repo=$OCI_REPO" >> $GITHUB_OUTPUT
4646
echo "helm_chart=$HELM_CHART" >> $GITHUB_OUTPUT
@@ -56,23 +56,20 @@ jobs:
5656

5757
- name: 🐳 Helm dependency
5858
run: |
59-
yq --indent 0 '.dependencies | map(select(.repository | test("^oci:") | not)) | map(["helm", "repo", "add", .name, .repository] | join(" ")) | .[]' ./toggle-django-helm/Chart.lock | sh --
60-
helm dependency build ./toggle-django-helm/
59+
yq --indent 0 '.dependencies | map(select(.repository | test("^oci:") | not)) | map(["helm", "repo", "add", .name, .repository] | join(" ")) | .[]' ./chart/Chart.lock | sh --
60+
helm dependency build ./chart/
6161
6262
- name: Helm lint
63-
run: helm lint ./toggle-django-helm --values ./toggle-django-helm/linter_values.yaml
63+
run: helm lint ./chart --values ./chart/linter_values.yaml
6464

6565
- name: Helm template
66-
run: |
67-
helm template ./toggle-django-helm --values ./toggle-django-helm/linter_values.yaml
66+
run: helm template ./chart --values ./chart/linter_values.yaml
6867

69-
# Test using all test values
70-
for values_file in ./toggle-django-helm/tests/values-*.yaml; do
71-
helm template ./toggle-django-helm --values "$values_file"
72-
done
68+
- name: Helm template (snapshots)
69+
run: ./chart/update-snapshots.sh --check-diff-only
7370

7471
- name: Package Helm Chart
75-
run: helm package ./toggle-django-helm/ -d ./toggle-django-helm/.helm-charts
72+
run: helm package ./chart/ -d ./chart/.helm-charts
7673

7774
- name: Push Helm Chart
7875
id: push
@@ -82,7 +79,7 @@ jobs:
8279
HELM_CHART: "${{ steps.prep.outputs.helm_chart }}"
8380
HELM_TARGET_REVISION: "${{ steps.prep.outputs.helm_target_revision }}"
8481
run: |
85-
PACKAGE_FILE=$(ls ./toggle-django-helm/.helm-charts/*.tgz | head -n 1)
82+
PACKAGE_FILE=$(ls ./chart/.helm-charts/*.tgz | head -n 1)
8683
echo "# Helm Chart" >> $GITHUB_STEP_SUMMARY
8784
echo "" >> $GITHUB_STEP_SUMMARY
8885
echo '```yaml' >> $GITHUB_STEP_SUMMARY
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
values-local.yaml
2+
snapshots

0 commit comments

Comments
 (0)