mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:15:36 +00:00
parent
b74300cb16
commit
c81c19bf23
29
.github/workflows/aliyun-container-registry.yml
vendored
29
.github/workflows/aliyun-container-registry.yml
vendored
@ -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\"
|
||||
}"
|
||||
|
@ -1,4 +1,4 @@
|
||||
name: Auto down deploy
|
||||
name: Uninstall apps
|
||||
|
||||
on:
|
||||
pull_request:
|
Loading…
Reference in New Issue
Block a user