25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。
TypeScript aicliclickhousedatabasedatabase-clientdatabase-managementdockerguimcpmongodbmysqlpostgresqlredisrustsql-serversqlitetaurivue
feat: add Docker workflow for building and pushing images
t8y2371a763b9e6c
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 3b5cb9cad8..a312f60bb9 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -115,3 +115,33 @@ jobs:env:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}run: gh release edit ${{ github.ref_name }} --repo ${{ github.repository }} --draft=false++ docker:+ needs: publish+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v4++ - name: Set up Docker Buildx+ uses: docker/setup-buildx-action@v3++ - name: Login to Docker Hub+ uses: docker/login-action@v3+ with:+ username: ${{ secrets.DOCKERHUB_USERNAME }}+ password: ${{ secrets.DOCKERHUB_TOKEN }}++ - name: Extract version from tag+ id: version+ run: echo "version=${GITHUB_REF_NAME#v}" >> "$GITHUB_OUTPUT"++ - name: Build and push+ uses: docker/build-push-action@v6+ with:+ context: .+ push: true+ tags: |+ ${{ secrets.DOCKERHUB_USERNAME }}/dbx:${{ steps.version.outputs.version }}+ ${{ secrets.DOCKERHUB_USERNAME }}/dbx:latest+ cache-from: type=gha+ cache-to: type=gha,mode=maxdiff --git a/Dockerfile b/Dockerfileindex 9be7687db8..bb381e5d71 100644--- a/Dockerfile+++ b/Dockerfile@@ -5,7 +5,7 @@ RUN npm i -g pnpmCOPY package.json pnpm-lock.yaml ./RUN pnpm install --frozen-lockfileCOPY src/ src/-COPY index.html vite.config.ts tsconfig.json tsconfig.app.json tsconfig.node.json ./+COPY index.html vite.config.ts tsconfig.json ./COPY tailwind.config.* postcss.config.* ./RUN pnpm build@@ -24,7 +24,6 @@ RUN cargo build --release -p dbx-web# Stage 3: Final imageFROM debian:bookworm-slim-RUN apt-get update && apt-get install -y ca-certificates && rm -rf /var/lib/apt/lists/*COPY --from=backend /app/target/release/dbx-web /usr/local/bin/COPY --from=frontend /app/dist /app/staticENV DBX_STATIC_DIR=/app/static