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.

feat: add ci job to test template for docker compose (#12514)

kurokobo1b940e7daa74
diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index b5e63a8870b..12213380bdc 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -82,6 +82,33 @@ jobs:
if: steps.changed-files.outputs.any_changed == 'true'
run: yarn run lint
+ docker-compose-template:
+ name: Docker Compose Template
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout code
+ uses: actions/checkout@v4
+
+ - name: Check changed files
+ id: changed-files
+ uses: tj-actions/changed-files@v45
+ with:
+ files: |
+ docker/generate_docker_compose
+ docker/.env.example
+ docker/docker-compose-template.yaml
+ docker/docker-compose.yaml
+
+ - name: Generate Docker Compose
+ if: steps.changed-files.outputs.any_changed == 'true'
+ run: |
+ cd docker
+ ./generate_docker_compose
+
+ - name: Check for changes
+ if: steps.changed-files.outputs.any_changed == 'true'
+ run: git diff --exit-code
superlinter:
name: SuperLinter