From 0b624dc337de8675f76a9fcdf1615cb66a8c9f0b Mon Sep 17 00:00:00 2001 From: Weny Xu Date: Fri, 5 Jul 2024 16:54:31 +0900 Subject: [PATCH] ci: retry on error during installing operator (#4295) chore(ci): retry on error during installing operator --- .../setup-greptimedb-cluster/action.yml | 27 +++++++++++-------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/actions/setup-greptimedb-cluster/action.yml b/.github/actions/setup-greptimedb-cluster/action.yml index e25faf7b4773..088aea6b187c 100644 --- a/.github/actions/setup-greptimedb-cluster/action.yml +++ b/.github/actions/setup-greptimedb-cluster/action.yml @@ -31,17 +31,22 @@ runs: using: composite steps: - name: Install GreptimeDB operator - shell: bash - run: | - helm repo add greptime https://greptimeteam.github.io/helm-charts/ - helm repo update - helm upgrade \ - --install \ - --create-namespace \ - greptimedb-operator greptime/greptimedb-operator \ - -n greptimedb-admin \ - --wait \ - --wait-for-jobs + uses: nick-fields/retry@v3 + with: + timeout_minutes: 3 + max_attempts: 3 + retry_on: error + shell: bash + command: | + helm repo add greptime https://greptimeteam.github.io/helm-charts/ + helm repo update + helm upgrade \ + --install \ + --create-namespace \ + greptimedb-operator greptime/greptimedb-operator \ + -n greptimedb-admin \ + --wait \ + --wait-for-jobs - name: Install GreptimeDB cluster shell: bash run: |