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} COMMIT_HASH=${GITHUB_SHA}
push: true push: true
tags: ${{ secrets.ALI_DOCKER_REGISTRY }}/${{ steps.meta.outputs.tags }} tags: ${{ secrets.ALI_DOCKER_REGISTRY }}/${{ steps.meta.outputs.tags }}
- name: Deploy NocoBase
- 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
env: env:
IMAGE_TAG: ${{ steps.meta.outputs.tags }} IMAGE_TAG: ${{ steps.meta.outputs.tags }}
run: | run: |
mkdir -p ./image echo $IMAGE_TAG
echo $IMAGE_TAG > ./image/image_tag export APP_NAME=$(echo $IMAGE_TAG | cut -d ":" -f 2)
- uses: actions/upload-artifact@v3 echo $APP_NAME
with: curl --location --request POST "${{secrets.NOCOBASE_DEPLOY_HOST}}$APP_NAME" \
name: image_tag --header 'Content-Type: application/json' \
path: image/ -d "{
\"tag\": \"$APP_NAME\",
\"dialect\": \"postgres\"
}"

View File

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