Update BFB Search #6904
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update BFB Search | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
schedule: | |
# Every 15 minutes | |
- cron: "*/15 * * * *" | |
jobs: | |
update-bfb-search: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Install tools | |
run: | | |
bash -x tools/ci/install-tools.sh | |
bash -x tools/ci/install-hcloud.sh | |
- name: Update bfb | |
run: | | |
export HCLOUD_TOKEN=${{ secrets.HCLOUD_TOKEN }} | |
export QDRANT_API_KEY=${{ secrets.QDRANT_API_KEY }} | |
export QDRANT_CLUSTER_URL=${{ secrets.QDRANT_CLUSTER_URL }} | |
export QC_NAME="qdrant-$(echo $QDRANT_CLUSTER_URL | sed -E 's~([^.]+)\..*~\1~')" | |
bash -x tools/run-bfb-search.sh | |
update-bfb-search-debug-cluster: | |
if: ${{ vars.ENABLE_DEBUG_CLUSTER == 'true' && ! cancelled() }} | |
needs: update-bfb-search | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Install tools | |
run: | | |
bash -x tools/ci/install-tools.sh | |
bash -x tools/ci/install-hcloud.sh | |
- name: Update bfb | |
run: | | |
export HCLOUD_TOKEN=${{ secrets.HCLOUD_TOKEN }} | |
export QDRANT_API_KEY=${{ secrets.QDRANT_API_KEY }} | |
export QDRANT_CLUSTER_URL=${{ secrets.QDRANT_CLUSTER_URL_2 }} | |
export QC_NAME="qdrant-$(echo $QDRANT_CLUSTER_URL | sed -E 's~([^.]+)\..*~\1~')" | |
bash -x tools/run-bfb-search.sh | |
update-bfb-search-three-cluster: | |
if: ${{ vars.ENABLE_DEBUG_CLUSTER == 'true' && ! cancelled() }} | |
needs: update-bfb-search-debug-cluster | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: webfactory/[email protected] | |
with: | |
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
- name: Install tools | |
run: | | |
bash -x tools/ci/install-tools.sh | |
bash -x tools/ci/install-hcloud.sh | |
- name: Update bfb | |
run: | | |
export HCLOUD_TOKEN=${{ secrets.HCLOUD_TOKEN }} | |
export QDRANT_API_KEY=${{ secrets.QDRANT_API_KEY }} | |
export QDRANT_CLUSTER_URL=${{ secrets.QDRANT_CLUSTER_URL_3 }} | |
export QC_NAME="qdrant-$(echo $QDRANT_CLUSTER_URL | sed -E 's~([^.]+)\..*~\1~')" | |
bash -x tools/run-bfb-search.sh |