Skip to content

armgit / dbx

Public Imported from GitHub
0

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。

chore(ci): merge CNB and AtomGit mirror sync into single workflow

t8y280d33e19909f
diff --git a/.github/workflows/sync-mirrors.yml b/.github/workflows/sync-mirrors.yml
new file mode 100644
index 0000000000..0a52dece5d
--- /dev/null
+++ b/.github/workflows/sync-mirrors.yml
@@ -0,0 +1,47 @@
+name: Sync Mirrors
+
+on:
+ push:
+ branches:
+ - main
+ tags:
+ - "**"
+ delete:
+ workflow_dispatch:
+
+jobs:
+ sync-cnb:
+ name: Sync to CNB
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Push to CNB
+ env:
+ CNB_TOKEN: ${{ secrets.CNB_TOKEN }}
+ run: |
+ set -euo pipefail
+ git remote add cnb "https://cnb:${CNB_TOKEN}@cnb.cool/dbxio.com/dbx.git"
+ git push cnb --all --force
+ git push cnb --tags --force
+
+ sync-atomgit:
+ name: Sync to AtomGit
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
+
+ - name: Push to AtomGit
+ env:
+ ATOMGIT_TOKEN: ${{ secrets.ATOMGIT_TOKEN }}
+ run: |
+ set -euo pipefail
+ git remote add atomgit "https://t8y2:${ATOMGIT_TOKEN}@atomgit.com/t8y2/dbx.git"
+ git push atomgit --all --force
+ git push atomgit --tags --force
diff --git a/.github/workflows/sync-to-cnb.yml b/.github/workflows/sync-to-cnb.yml
deleted file mode 100644
index c84b0a14cc..0000000000
--- a/.github/workflows/sync-to-cnb.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-name: Sync to CNB
-
-on:
- push:
- branches:
- - main
- tags:
- - "**"
- delete:
- workflow_dispatch:
-
-env:
- CNB_REPOSITORY: "dbxio.com/dbx"
- CNB_USERNAME: "cnb"
-
-jobs:
- sync:
- name: Sync repository to CNB
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
-
- - name: Push to CNB mirror
- env:
- CNB_TOKEN: ${{ secrets.CNB_TOKEN }}
- run: |
- set -euo pipefail
-
- git remote add cnb "https://${CNB_USERNAME}:${CNB_TOKEN}@cnb.cool/${CNB_REPOSITORY}.git"
- git push cnb --all --force
- git push cnb --tags --force