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}
|
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\"
|
||||||
|
}"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: Auto down deploy
|
name: Uninstall apps
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
Loading…
Reference in New Issue
Block a user