From ca0f380ca6f1df7b3699fe89a8b3660b7e013d6f Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Thu, 27 Feb 2025 02:45:18 +0530 Subject: [PATCH 1/3] ci: syncing up helm release for the new structure --- .github/workflows/helm-release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index 67af8ea7..9590399b 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -10,7 +10,7 @@ on: branches: - nightly paths: - - "charts/**" + - "functions/kubernetes/charts/**" permissions: contents: read @@ -57,6 +57,9 @@ jobs: echo "CHART_VERSION=${CHART_VERSION}" >> $GITHUB_OUTPUT echo "APP_VERSION=${APP_VERSION}" >> $GITHUB_OUTPUT + - name: Change directory + run: cd functions/kubernetes + - name: Update helm dependencies run: helm dependency update ./charts/shuffle From 7c15028d2f51c029dc95a81b201a5cf24d93d322 Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Thu, 27 Feb 2025 02:50:30 +0530 Subject: [PATCH 2/3] ci: adding workflow_dispatch to test better --- .github/workflows/helm-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index 9590399b..52c683df 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -11,6 +11,7 @@ on: - nightly paths: - "functions/kubernetes/charts/**" + workflow_dispatch: permissions: contents: read From 2b878e689d0eb2283f6bc13ffc83193b1a92d536 Mon Sep 17 00:00:00 2001 From: Aditya <60684641+0x0elliot@users.noreply.github.com> Date: Thu, 27 Feb 2025 02:56:17 +0530 Subject: [PATCH 3/3] ci: minor fix to catch up with directory change --- .github/workflows/helm-release.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/helm-release.yml b/.github/workflows/helm-release.yml index 52c683df..e365080e 100644 --- a/.github/workflows/helm-release.yml +++ b/.github/workflows/helm-release.yml @@ -58,17 +58,14 @@ jobs: echo "CHART_VERSION=${CHART_VERSION}" >> $GITHUB_OUTPUT echo "APP_VERSION=${APP_VERSION}" >> $GITHUB_OUTPUT - - name: Change directory - run: cd functions/kubernetes - - name: Update helm dependencies - run: helm dependency update ./charts/shuffle + run: helm dependency update ./functions/kubernetes/charts/shuffle - name: Package Helm chart - run: helm package ./charts/shuffle --version "${CHART_VERSION}" --app-version="${APP_VERSION}" --destination ./charts + run: helm package ./functions/kubernetes/charts/shuffle --version "${CHART_VERSION}" --app-version="${APP_VERSION}" --destination ./functions/kubernetes/charts - name: Login to OCI registry (ghcr.io) run: helm registry login ghcr.io --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} - name: Push helm chart - run: helm push ./charts/shuffle-*.tgz oci://ghcr.io/shuffle/shuffle/charts + run: helm push ./functions/kubernetes/charts/shuffle-*.tgz oci://ghcr.io/shuffle/shuffle/charts