From 272fce944695f4cf20e93d0d19e2489d7b9a41db Mon Sep 17 00:00:00 2001 From: wkbrd <30599409+wkbrd@users.noreply.github.com> Date: Mon, 16 Jun 2025 20:02:55 -0400 Subject: [PATCH] Add GitHub publish action --- .github/workflows/helm_release.yaml | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/helm_release.yaml diff --git a/.github/workflows/helm_release.yaml b/.github/workflows/helm_release.yaml new file mode 100644 index 0000000..b0c48da --- /dev/null +++ b/.github/workflows/helm_release.yaml @@ -0,0 +1,35 @@ +# from https://github.com/wkbrd/docker-registry.helm/blob/main/.github/workflows/helm_release.yaml +# Apache 2 License + +name: Release Charts +env: + HELM_VERSION_TO_INSTALL: 3.14.0 + GCR_IMAGE: ghcr.io/${{ github.repository_owner }} + +on: + workflow_dispatch: + +jobs: + release: + permissions: + contents: write + packages: write + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: install helm + uses: Azure/setup-helm@v4.2.0 + with: + # Version of helm + version: ${{ env.HELM_VERSION_TO_INSTALL }} # default is latest + + - name: publish to oci registry + run: | + echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io --username ${{ github.repository_owner }} --password-stdin + helm package ${{ github.workspace }}/ + package=`ls -t questdb-*.tgz | head -n 1` + helm push "${package}" oci://${{ env.GCR_IMAGE }}