Files
DataMate/.github/workflows/package.yml
hefanli e5b28c26b1 add gateway (#187)
* feature: add gateway
2025-12-22 15:41:17 +08:00

78 lines
2.1 KiB
YAML

name: Package All
on:
workflow_dispatch:
jobs:
backend-docker-build:
name: Build and Push Backend Docker Image
uses: ./.github/workflows/docker-image-save.yml
with:
service_name: backend
frontend-docker-build:
name: Build and Push Frontend Docker Image
uses: ./.github/workflows/docker-image-save.yml
with:
service_name: frontend
database-docker-build:
name: Build and Push Database Docker Image
uses: ./.github/workflows/docker-image-save.yml
with:
service_name: database
runtime-docker-build:
name: Build and Push Runtime Docker Image
uses: ./.github/workflows/docker-image-save.yml
with:
service_name: runtime
backend-python-docker-build:
name: Build and Push Backend Python Docker Image
uses: ./.github/workflows/docker-image-save.yml
with:
service_name: backend-python
gateway-docker-build:
name: Build and Push Frontend Docker Image
uses: ./.github/workflows/docker-image-save.yml
with:
service_name: gateway
package-all:
needs:
- backend-docker-build
- frontend-docker-build
- database-docker-build
- backend-python-docker-build
- runtime-docker-build
- gateway-docker-build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Image
uses: actions/download-artifact@v5
with:
path: images
pattern: datamate-*
merge-multiple: true
- name: Package
run: |
cp runtime/deer-flow/.env deployment/docker/deer-flow/.env
cp runtime/deer-flow/conf.yaml deployment/docker/deer-flow/conf.yaml
cp runtime/deer-flow/.env deployment/helm/deer-flow/charts/public/.env
cp runtime/deer-flow/conf.yaml deployment/helm/deer-flow/charts/public/conf.yaml
tar -cvf datamate.tar deployment/ images
- name: Upload Package
uses: actions/upload-artifact@v4
with:
name: DataMate
include-hidden-files: true
path: |
deployment/
images/