Run snapshots #4178
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: Run snapshots | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
schedule: | |
- cron: "30 22 * * *" | |
jobs: | |
run-snapshots: | |
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: Run snapshots | |
id: run_snapshots | |
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-snapshots.sh | |
- name: Fail job if any check failed | |
if: steps.run_snapshots.outputs.failed == 'true' | |
run: exit 1 | |
run-snapshots-debug-cluster: | |
if: ${{ vars.ENABLE_DEBUG_CLUSTER == 'disable-snapshots' && ! cancelled() }} | |
needs: run-snapshots | |
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: Run snapshots | |
id: run_snapshots | |
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-snapshots.sh | |
- name: Fail job if any check failed | |
if: steps.run_snapshots.outputs.failed == 'true' | |
run: exit 1 | |
run-snapshots-3-cluster: | |
if: ${{ vars.ENABLE_DEBUG_CLUSTER == 'disable-snapshots' && ! cancelled() }} | |
needs: run-snapshots-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: Run snapshots | |
id: run_snapshots | |
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-snapshots.sh | |
- name: Fail job if any check failed | |
if: steps.run_snapshots.outputs.failed == 'true' | |
run: exit 1 |