mirror of
https://github.com/langgenius/dify.git
synced 2026-01-13 21:57:48 +08:00
ci: add HITL test env deployment action (#30846)
This commit is contained in:
parent
9161936f41
commit
df938a4543
29
.github/workflows/deploy-hitl.yml
vendored
Normal file
29
.github/workflows/deploy-hitl.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
name: Deploy HITL
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_run:
|
||||||
|
workflows: ["Build and Push API & Web"]
|
||||||
|
branches:
|
||||||
|
- "feat/hitl-frontend"
|
||||||
|
- "feat/hitl-backend"
|
||||||
|
types:
|
||||||
|
- completed
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: |
|
||||||
|
github.event.workflow_run.conclusion == 'success' &&
|
||||||
|
(
|
||||||
|
github.event.workflow_run.head_branch == 'feat/hitl-frontend' ||
|
||||||
|
github.event.workflow_run.head_branch == 'feat/hitl-backend'
|
||||||
|
)
|
||||||
|
steps:
|
||||||
|
- name: Deploy to server
|
||||||
|
uses: appleboy/ssh-action@v0.1.8
|
||||||
|
with:
|
||||||
|
host: ${{ secrets.HITL_SSH_HOST }}
|
||||||
|
username: ${{ secrets.SSH_USER }}
|
||||||
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
script: |
|
||||||
|
${{ vars.SSH_SCRIPT || secrets.SSH_SCRIPT }}
|
||||||
Loading…
Reference in New Issue
Block a user