fix(ci): curl --retry 2

This commit is contained in:
chenos 2023-02-08 09:20:17 +08:00
parent a6190b54f5
commit 3cd79006be
3 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@ jobs:
echo $IMAGE_TAG echo $IMAGE_TAG
export APP_NAME=$(echo $IMAGE_TAG | cut -d ":" -f 2) export APP_NAME=$(echo $IMAGE_TAG | cut -d ":" -f 2)
echo $APP_NAME 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' \ --header 'Content-Type: application/json' \
-d "{ -d "{
\"tag\": \"$APP_NAME\", \"tag\": \"$APP_NAME\",

View File

@ -48,7 +48,7 @@ jobs:
tags: ${{ secrets.ALI_DOCKER_REGISTRY }}/nocobase/nocobase:pr-${{ inputs.pr_number }} tags: ${{ secrets.ALI_DOCKER_REGISTRY }}/nocobase/nocobase:pr-${{ inputs.pr_number }}
- name: Deploy NocoBase - name: Deploy NocoBase
run: | 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' \ --header 'Content-Type: application/json' \
-d "{ -d "{
\"tag\": \"pr-${{ inputs.pr_number }}\", \"tag\": \"pr-${{ inputs.pr_number }}\",

View File

@ -29,4 +29,4 @@ jobs:
echo $IMAGE_TAG echo $IMAGE_TAG
export APP_NAME=$(echo $IMAGE_TAG | cut -d ":" -f 2) export APP_NAME=$(echo $IMAGE_TAG | cut -d ":" -f 2)
echo $APP_NAME 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"