diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..0048246 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,56 @@ +name: Release Charts + +on: + push: + branches: + - main + - chart_releaser + +jobs: + release: + permissions: + contents: write # to push chart release and create a release (helm/chart-releaser-action) + packages: write # needed for ghcr access + id-token: write # needed for keyless signing + + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v4 + + - name: Fetch history + run: git fetch --prune --unshallow + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Set up Helm + uses: azure/setup-helm@v4 + with: + version: v3.12.0 + + - name: Run chart-releaser + uses: helm/chart-releaser-action@v1.6.0 + env: + CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" + CR_GENERATE_RELEASE_NOTES: true + + # see https://github.com/helm/chart-releaser/issues/183 + - name: Login to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Push charts to GHCR + run: | + shopt -s nullglob + for pkg in .cr-release-packages/*; do + if [ -z "${pkg:-}" ]; then + break + fi + helm push "${pkg}" "oci://ghcr.io/${GITHUB_REPOSITORY_OWNER}/charts" + done \ No newline at end of file diff --git a/helm/enterprise/.helmignore b/enterprise/.helmignore similarity index 100% rename from helm/enterprise/.helmignore rename to enterprise/.helmignore diff --git a/helm/enterprise/Chart.yaml b/enterprise/Chart.yaml similarity index 100% rename from helm/enterprise/Chart.yaml rename to enterprise/Chart.yaml diff --git a/helm/enterprise/DataService.md b/enterprise/DataService.md similarity index 100% rename from helm/enterprise/DataService.md rename to enterprise/DataService.md diff --git a/helm/enterprise/README.md b/enterprise/README.md similarity index 100% rename from helm/enterprise/README.md rename to enterprise/README.md diff --git a/helm/enterprise/resources/bedrock.png b/enterprise/resources/bedrock.png similarity index 100% rename from helm/enterprise/resources/bedrock.png rename to enterprise/resources/bedrock.png diff --git a/helm/enterprise/templates/NOTES.txt b/enterprise/templates/NOTES.txt similarity index 100% rename from helm/enterprise/templates/NOTES.txt rename to enterprise/templates/NOTES.txt diff --git a/helm/enterprise/templates/_helpers.tpl b/enterprise/templates/_helpers.tpl similarity index 100% rename from helm/enterprise/templates/_helpers.tpl rename to enterprise/templates/_helpers.tpl diff --git a/helm/enterprise/templates/dataservice/deployment.yaml b/enterprise/templates/dataservice/deployment.yaml similarity index 100% rename from helm/enterprise/templates/dataservice/deployment.yaml rename to enterprise/templates/dataservice/deployment.yaml diff --git a/helm/enterprise/templates/dataservice/hpa.yaml b/enterprise/templates/dataservice/hpa.yaml similarity index 100% rename from helm/enterprise/templates/dataservice/hpa.yaml rename to enterprise/templates/dataservice/hpa.yaml diff --git a/helm/enterprise/templates/dataservice/service-account.yaml b/enterprise/templates/dataservice/service-account.yaml similarity index 100% rename from helm/enterprise/templates/dataservice/service-account.yaml rename to enterprise/templates/dataservice/service-account.yaml diff --git a/helm/enterprise/templates/dataservice/service.yaml b/enterprise/templates/dataservice/service.yaml similarity index 100% rename from helm/enterprise/templates/dataservice/service.yaml rename to enterprise/templates/dataservice/service.yaml diff --git a/helm/enterprise/templates/gateway/config.yaml b/enterprise/templates/gateway/config.yaml similarity index 100% rename from helm/enterprise/templates/gateway/config.yaml rename to enterprise/templates/gateway/config.yaml diff --git a/helm/enterprise/templates/gateway/deployment.yaml b/enterprise/templates/gateway/deployment.yaml similarity index 100% rename from helm/enterprise/templates/gateway/deployment.yaml rename to enterprise/templates/gateway/deployment.yaml diff --git a/helm/enterprise/templates/gateway/hpa.yaml b/enterprise/templates/gateway/hpa.yaml similarity index 100% rename from helm/enterprise/templates/gateway/hpa.yaml rename to enterprise/templates/gateway/hpa.yaml diff --git a/helm/enterprise/templates/gateway/service-account.yaml b/enterprise/templates/gateway/service-account.yaml similarity index 100% rename from helm/enterprise/templates/gateway/service-account.yaml rename to enterprise/templates/gateway/service-account.yaml diff --git a/helm/enterprise/templates/gateway/service.yaml b/enterprise/templates/gateway/service.yaml similarity index 100% rename from helm/enterprise/templates/gateway/service.yaml rename to enterprise/templates/gateway/service.yaml diff --git a/helm/enterprise/templates/imagepullsecret.yaml b/enterprise/templates/imagepullsecret.yaml similarity index 100% rename from helm/enterprise/templates/imagepullsecret.yaml rename to enterprise/templates/imagepullsecret.yaml diff --git a/helm/enterprise/templates/ingress.yaml b/enterprise/templates/ingress.yaml similarity index 100% rename from helm/enterprise/templates/ingress.yaml rename to enterprise/templates/ingress.yaml diff --git a/helm/enterprise/templates/redis/deployment.yaml b/enterprise/templates/redis/deployment.yaml similarity index 100% rename from helm/enterprise/templates/redis/deployment.yaml rename to enterprise/templates/redis/deployment.yaml diff --git a/helm/enterprise/templates/redis/service.yaml b/enterprise/templates/redis/service.yaml similarity index 100% rename from helm/enterprise/templates/redis/service.yaml rename to enterprise/templates/redis/service.yaml diff --git a/helm/enterprise/templates/resources-config.yaml b/enterprise/templates/resources-config.yaml similarity index 100% rename from helm/enterprise/templates/resources-config.yaml rename to enterprise/templates/resources-config.yaml diff --git a/helm/enterprise/templates/tests/test-connection.yaml b/enterprise/templates/tests/test-connection.yaml similarity index 100% rename from helm/enterprise/templates/tests/test-connection.yaml rename to enterprise/templates/tests/test-connection.yaml diff --git a/helm/enterprise/values.yaml b/enterprise/values.yaml similarity index 100% rename from helm/enterprise/values.yaml rename to enterprise/values.yaml