mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 04:07:50 +08:00
ci(workflows): fix auto deploy error (#1166)
This commit is contained in:
parent
51c4ba0a04
commit
ec94565259
5
.github/workflows/auto_deploy_pr.yml
vendored
5
.github/workflows/auto_deploy_pr.yml
vendored
@ -5,7 +5,7 @@ name: Auto Deploy Pr
|
||||
|
||||
# https://docs.github.com/cn/actions/using-workflows/events-that-trigger-workflows#workflow_run
|
||||
env:
|
||||
nocobase_deploy_sh: /home/ecs-user/nocobase/auto-deploy-pr/nocobase-deploy.sh
|
||||
nocobase_deploy_sh_dir: /home/ecs-user/nocobase/auto-deploy-pr/
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [ "Aliyun Container Registry" ]
|
||||
@ -53,4 +53,5 @@ jobs:
|
||||
username: ${{ secrets.deploy_host_username }}
|
||||
password: ${{ secrets.deploy_host_password }}
|
||||
script: |
|
||||
${{ env.nocobase_deploy_sh }} up ${{ env.pr_number }}
|
||||
cd ${{ env.nocobase_deploy_sh_dir }}
|
||||
./nocobase-deploy.sh up ${{ env.pr_number }}
|
||||
|
5
.github/workflows/auto_down_deploy_pr.yml
vendored
5
.github/workflows/auto_down_deploy_pr.yml
vendored
@ -5,7 +5,7 @@ name: Auto down deploy
|
||||
|
||||
# https://docs.github.com/cn/actions/using-workflows/events-that-trigger-workflows#workflow_run
|
||||
env:
|
||||
nocobase_deploy_sh: /home/ecs-user/nocobase/auto-deploy-pr/nocobase-deploy.sh
|
||||
nocobase_deploy_sh_dir: /home/ecs-user/nocobase/auto-deploy-pr/
|
||||
on:
|
||||
pull_request:
|
||||
types:
|
||||
@ -29,4 +29,5 @@ jobs:
|
||||
username: ${{ secrets.deploy_host_username }}
|
||||
password: ${{ secrets.deploy_host_password }}
|
||||
script: |
|
||||
${{ env.nocobase_deploy_sh }} down ${{ env.pr_number }}
|
||||
cd ${{ env.nocobase_deploy_sh_dir }}
|
||||
./nocobase-deploy.sh down ${{ env.pr_number }}
|
||||
|
6
.github/workflows/manual_deploy_fork_pr.yml
vendored
6
.github/workflows/manual_deploy_fork_pr.yml
vendored
@ -2,7 +2,8 @@ name: manual_down_deploy_pr
|
||||
# deploy_host
|
||||
# deploy_host_username
|
||||
# deploy_host_password
|
||||
|
||||
env:
|
||||
nocobase_deploy_sh_dir: /home/ecs-user/nocobase/auto-deploy-pr/
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
@ -108,4 +109,5 @@ jobs:
|
||||
username: ${{ secrets.deploy_host_username }}
|
||||
password: ${{ secrets.deploy_host_password }}
|
||||
script: |
|
||||
${{ env.nocobase_deploy_sh }} up ${{ env.pr_number }}
|
||||
cd ${{ env.nocobase_deploy_sh_dir }}
|
||||
./nocobase-deploy.sh up ${{ env.pr_number }}
|
||||
|
Loading…
Reference in New Issue
Block a user