diff --git a/.github/workflows/aliyun-container-registry.yml b/.github/workflows/aliyun-container-registry.yml index 25e622b08..1c8c33d40 100644 --- a/.github/workflows/aliyun-container-registry.yml +++ b/.github/workflows/aliyun-container-registry.yml @@ -62,25 +62,16 @@ jobs: COMMIT_HASH=${GITHUB_SHA} push: true tags: ${{ secrets.ALI_DOCKER_REGISTRY }}/${{ steps.meta.outputs.tags }} - - - name: Save PR number - env: - PR_NUMBER: ${{ github.event.number }} - run: | - mkdir -p ./pr - echo $PR_NUMBER > ./pr/pr_number - - uses: actions/upload-artifact@v3 - with: - name: pr_number - path: pr/ - - - name: Save image tag + - name: Deploy NocoBase env: IMAGE_TAG: ${{ steps.meta.outputs.tags }} run: | - mkdir -p ./image - echo $IMAGE_TAG > ./image/image_tag - - uses: actions/upload-artifact@v3 - with: - name: image_tag - path: image/ + 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" \ + --header 'Content-Type: application/json' \ + -d "{ + \"tag\": \"$APP_NAME\", + \"dialect\": \"postgres\" + }" diff --git a/.github/workflows/auto_down_deploy_pr.yml b/.github/workflows/uninstall-apps.yml similarity index 97% rename from .github/workflows/auto_down_deploy_pr.yml rename to .github/workflows/uninstall-apps.yml index 5fc40d58b..7ecf8ca41 100644 --- a/.github/workflows/auto_down_deploy_pr.yml +++ b/.github/workflows/uninstall-apps.yml @@ -1,4 +1,4 @@ -name: Auto down deploy +name: Uninstall apps on: pull_request: