From f8b686548ea5da375eaa22c86a267841abc770be Mon Sep 17 00:00:00 2001 From: chenos Date: Sun, 24 Nov 2024 19:27:43 +0800 Subject: [PATCH] chore: update ci --- .github/workflows/build-pro-image.yml | 13 +++++++++++++ .github/workflows/manual-build-pro-image.yml | 8 ++++++++ .github/workflows/manual-build-pro-plugin-image.yml | 13 +++++++++++++ 3 files changed, 34 insertions(+) diff --git a/.github/workflows/build-pro-image.yml b/.github/workflows/build-pro-image.yml index 7d7d5594a..98900ed01 100644 --- a/.github/workflows/build-pro-image.yml +++ b/.github/workflows/build-pro-image.yml @@ -176,3 +176,16 @@ jobs: \"tag\": \"$APP_NAME\", \"dialect\": \"postgres\" }" + - name: Deploy NocoBase V2 + env: + IMAGE_TAG: ${{ steps.meta.outputs.tags }} + run: | + echo $IMAGE_TAG + export APP_NAME=$(echo $IMAGE_TAG | cut -d ":" -f 2) + echo $APP_NAME + curl --retry 2 --location --request POST "${{secrets.NOCOBASE_DEPLOY_HOST_V2}}$APP_NAME" \ + --header 'Content-Type: application/json' \ + -d "{ + \"tag\": \"$APP_NAME\", + \"dialect\": \"postgres\" + }" diff --git a/.github/workflows/manual-build-pro-image.yml b/.github/workflows/manual-build-pro-image.yml index aeec9b19a..ec88c1078 100644 --- a/.github/workflows/manual-build-pro-image.yml +++ b/.github/workflows/manual-build-pro-image.yml @@ -152,3 +152,11 @@ jobs: \"tag\": \"${{ steps.get-tag.outputs.tag }}\", \"dialect\": \"postgres\" }" + - name: Deploy NocoBase V2 + run: | + curl --retry 2 --location --request POST "${{secrets.NOCOBASE_DEPLOY_HOST_V2}}${{ steps.get-tag.outputs.tag }}" \ + --header 'Content-Type: application/json' \ + -d "{ + \"tag\": \"${{ steps.get-tag.outputs.tag }}\", + \"dialect\": \"postgres\" + }" diff --git a/.github/workflows/manual-build-pro-plugin-image.yml b/.github/workflows/manual-build-pro-plugin-image.yml index cfbe77bb3..6283c5a0e 100644 --- a/.github/workflows/manual-build-pro-plugin-image.yml +++ b/.github/workflows/manual-build-pro-plugin-image.yml @@ -145,3 +145,16 @@ jobs: \"tag\": \"$APP_NAME\", \"dialect\": \"postgres\" }" + - name: Deploy NocoBase V2 + env: + IMAGE_TAG: ${{ steps.get-tag.outputs.tag }} + run: | + echo $IMAGE_TAG + export APP_NAME=$(echo $IMAGE_TAG | cut -d ":" -f 2)-${{ inputs.pro_plugin }} + echo $APP_NAME + curl --retry 2 --location --request POST "${{secrets.NOCOBASE_DEPLOY_HOST_V2}}$APP_NAME" \ + --header 'Content-Type: application/json' \ + -d "{ + \"tag\": \"$APP_NAME\", + \"dialect\": \"postgres\" + }"