chore: update ci (#1239)

* fix: test

* fix: deploy NocoBase
This commit is contained in:
chenos 2022-12-13 10:42:18 +08:00 committed by GitHub
parent b74300cb16
commit c81c19bf23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 20 deletions

View File

@ -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\"
}"

View File

@ -1,4 +1,4 @@
name: Auto down deploy
name: Uninstall apps
on:
pull_request: