Update BFB Upload #5340
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 Upload | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
schedule: | |
# Every 30 minutes | |
- cron: "*/30 * * * *" | |
jobs: | |
update-bfb-upload: | |
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-upload.sh | |
update-bfb-upload-debug-cluster: | |
if: ${{ vars.ENABLE_DEBUG_CLUSTER == 'true' && ! cancelled() }} | |
needs: update-bfb-upload | |
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-upload.sh | |
update-bfb-upload-three-cluster: | |
if: ${{ vars.ENABLE_DEBUG_CLUSTER == 'true' && ! cancelled() }} | |
needs: update-bfb-upload-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-upload.sh |