From e874a1b92f46e5bed636f16881c9524689777ef3 Mon Sep 17 00:00:00 2001 From: Max Isom Date: Mon, 9 Dec 2024 10:36:53 -0800 Subject: [PATCH] [BLD] trigger hosted release workflow --- .github/workflows/release-chromadb.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/release-chromadb.yml b/.github/workflows/release-chromadb.yml index fe66cdc2b17..34783f2036a 100644 --- a/.github/workflows/release-chromadb.yml +++ b/.github/workflows/release-chromadb.yml @@ -104,6 +104,30 @@ jobs: push: true tags: "${{ env.GHCR_IMAGE_NAME }}:${{ needs.get-version.outputs.version }},${{ env.DOCKERHUB_IMAGE_NAME }}:${{ needs.get-version.outputs.version }},${{ env.GHCR_IMAGE_NAME }}:latest,${{ env.DOCKERHUB_IMAGE_NAME }}:latest" + release-hosted: + name: Release to Chroma Cloud + runs-on: ubuntu-latest + needs: + - release-docker + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Trigger Hosted Chroma FE Release + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.HOSTED_CHROMA_WORKFLOW_DISPATCH_TOKEN }} + script: | + const result = await github.rest.actions.createWorkflowDispatch({ + owner: 'chroma-core', + repo: 'hosted-chroma', + workflow_id: 'deploy-data-plane.yaml', + ref: 'main', + inputs: { + "oss-sha": "${{ github.sha }}", + } + }) + release-pypi: name: Publish to PyPI runs-on: ubuntu-latest