Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Ci/deploy enterprise (#15699)

Xiyuan Chen5e035a420958
diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml
index 49ab9837782..54378834414 100644
--- a/.github/workflows/build-push.yml
+++ b/.github/workflows/build-push.yml
@@ -5,6 +5,7 @@ on:
branches:
- "main"
- "deploy/dev"
+ - "deploy/enterprise"
release:
types: [published]
diff --git a/.github/workflows/deploy-enterprise.yml b/.github/workflows/deploy-enterprise.yml
new file mode 100644
index 00000000000..98fa7c3b49b
--- /dev/null
+++ b/.github/workflows/deploy-enterprise.yml
@@ -0,0 +1,29 @@
+name: Deploy Enterprise
+
+permissions:
+ contents: read
+
+on:
+ workflow_run:
+ workflows: ["Build and Push API & Web"]
+ branches:
+ - "deploy/enterprise"
+ types:
+ - completed
+
+jobs:
+ deploy:
+ runs-on: ubuntu-latest
+ if: |
+ github.event.workflow_run.conclusion == 'success' &&
+ github.event.workflow_run.head_branch == 'deploy/enterprise'
+
+ steps:
+ - name: Deploy to server
+ uses: appleboy/[email protected]
+ with:
+ host: ${{ secrets.ENTERPRISE_SSH_HOST }}
+ username: ${{ secrets.ENTERPRISE_SSH_USER }}
+ password: ${{ secrets.ENTERPRISE_SSH_PASSWORD }}
+ script: |
+ ${{ vars.ENTERPRISE_SSH_SCRIPT || secrets.ENTERPRISE_SSH_SCRIPT }}