diff --git a/.github/workflows/aliyun-container-registry.yml b/.github/workflows/aliyun-container-registry.yml index fccbbaf9b..b85ab9d50 100644 --- a/.github/workflows/aliyun-container-registry.yml +++ b/.github/workflows/aliyun-container-registry.yml @@ -74,7 +74,7 @@ jobs: echo $IMAGE_TAG export APP_NAME=$(echo $IMAGE_TAG | cut -d ":" -f 2) echo $APP_NAME - curl --location --request POST "${{secrets.NOCOBASE_DEPLOY_HOST}}$APP_NAME" \ + curl --retry 2 --location --request POST "${{secrets.NOCOBASE_DEPLOY_HOST}}$APP_NAME" \ --header 'Content-Type: application/json' \ -d "{ \"tag\": \"$APP_NAME\", diff --git a/.github/workflows/manual-build-pr-docker-image.yml b/.github/workflows/manual-build-pr-docker-image.yml index f84d9a800..a56bbc8bd 100644 --- a/.github/workflows/manual-build-pr-docker-image.yml +++ b/.github/workflows/manual-build-pr-docker-image.yml @@ -48,7 +48,7 @@ jobs: tags: ${{ secrets.ALI_DOCKER_REGISTRY }}/nocobase/nocobase:pr-${{ inputs.pr_number }} - name: Deploy NocoBase run: | - curl --location --request POST "${{secrets.NOCOBASE_DEPLOY_HOST}}pr-${{ inputs.pr_number }}" \ + curl --retry 2 --location --request POST "${{secrets.NOCOBASE_DEPLOY_HOST}}pr-${{ inputs.pr_number }}" \ --header 'Content-Type: application/json' \ -d "{ \"tag\": \"pr-${{ inputs.pr_number }}\", diff --git a/.github/workflows/uninstall-apps.yml b/.github/workflows/uninstall-apps.yml index 7ecf8ca41..4ff1f531b 100644 --- a/.github/workflows/uninstall-apps.yml +++ b/.github/workflows/uninstall-apps.yml @@ -29,4 +29,4 @@ jobs: echo $IMAGE_TAG export APP_NAME=$(echo $IMAGE_TAG | cut -d ":" -f 2) echo $APP_NAME - curl --location --request DELETE "${{secrets.NOCOBASE_DEPLOY_HOST}}$APP_NAME" + curl --retry 2 --location --request DELETE "${{secrets.NOCOBASE_DEPLOY_HOST}}$APP_NAME"