Author SHA1 Message Date
tao.chen b557fab2f2 update push message 2026-07-16 18:59:25 +08:00
tao.chen 37a1856ca7 update: bark message
Build Docker Image / Build image on tag (push) Successful in 2m44s
2026-07-16 18:49:21 +08:00
tao.chen 0e98878992 ci: update workflow 2026-07-16 18:44:05 +08:00
tao.chen 4659d43e8e fix: add path 2026-07-16 18:37:19 +08:00
tao.chen 3e4d095425 update: Dockerfile 2026-07-16 17:15:42 +08:00
tao.chen dcf978fe92 fix: mimo to mimocode 2026-07-16 16:54:50 +08:00
tao.chen 481bdf789a fix: mimo not found 2026-07-16 16:51:49 +08:00
tao.chen 15359e391e fix: ENTRYPOINT error 2026-07-16 16:47:42 +08:00
tao.chen 3336fdb5cd fix: build error 2026-07-16 16:42:17 +08:00
tao.chen 4a26c2bdfc fix: curl not found 2026-07-16 16:38:51 +08:00
tao.chen 689859881a update: Dockerfile 2026-07-16 16:24:30 +08:00
tao.chen 4028ef3dad update: add PATH 2026-07-16 15:44:07 +08:00
tao.chen 89297fb827 ci: remove buildx 2026-07-16 15:41:22 +08:00
tao.chen d608f491f1 ci: push bark 2026-07-16 15:08:46 +08:00
tao.chen 7ec98f4835 update: build.yml 2026-07-16 15:03:45 +08:00
tao.chen aa79292f6e ci: create workflow 2026-07-16 14:11:09 +08:00
tao.chen 165ab9bc29 udpate: Dockerfile
修复安装命令错误

Signed-off-by: tao.chen <1137626076@qq.com>
2026-07-16 11:03:38 +08:00
tao.chen 2871706c47 refactor: opencode to mimocode 2026-07-15 14:01:29 +08:00
3 changed files with 86 additions and 5 deletions
+72
View File
@@ -0,0 +1,72 @@
name: Build Docker Image
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
build:
name: Build image on tag
runs-on: host-shell
steps:
- name: Checkout
uses: https://gitea.com/actions/checkout@v4
# - name: Set up Docker Buildx
# uses: https://gitee.com/gitea-actions/setup-buildx-action@v3 # 推荐使用 Gitee/Gitea 国内镜像
- name: Login to Registry
uses: https://gitee.com/gitea-actions/login-action@v3
with:
registry: registry.cn-shanghai.aliyuncs.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Show build context
run: |
echo "Ref: ${{ github.ref }}"
echo "Tag: ${GITHUB_REF_NAME}"
echo "Runner: $(uname -a)"
- name: Build Image
run: |
docker build -t opencode-custom:latest -t registry.cn-shanghai.aliyuncs.com/taochen/opencode-custom:latest .
- name: Verify image
run: |
docker images | grep opencode-custom
docker run --rm opencode-custom:latest --version
- name: Push Image
run: |
docker push registry.cn-shanghai.aliyuncs.com/taochen/opencode-custom:latest
- name: Notify release via Bark
if: always()
run: |
TITLE="${{ github.ref_name }}"
STATUS="${{ job.status }}"
if [ "${STATUS}" = "success" ]; then
EMOJI="✅"
else
EMOJI="❌"
fi
BODY="${EMOJI} opencode-custom:latest image build ${STATUS}\n branch ${{ github.ref_name }}\n workflow ${{ github.workflow }}\n run ${{ github.run_id }}"
PAYLOAD=$(cat <<EOF
{
"device_key": "6ZFVsxM95cuAjYoNLWSWaN",
"title": "${TITLE} - image build ${STATUS}",
"body": "${BODY}",
"group": "Gitea",
"isArchive": 1,
"ttl": 3600
}
EOF
)
curl -s \
-X POST http://101.43.40.124:81/push \
-H "Content-Type: application/json; charset=utf-8" \
-d "${PAYLOAD}"
+4
View File
@@ -115,3 +115,7 @@ The two non-pipeline skills (`logic-planner` taxonomy details, `sql-review` chec
- **Pipeline status changes** — never collapse gates without user confirmation. The pipeline's value comes from each stage being a separate, re-runnable hand-off; inlining them couples them.
- **Triggers in `description:` frontmatter** — these are what Claude Code matches against user prompts. Be specific (input contract + concrete trigger phrases). Vague triggers cause skill over-invocation.
- **Stale path references** — the bundled SKILL.md / scripts use `.claude/skills/...` paths from an earlier layout. When updating validator instructions, prefer the actual paths (`skills/...` on host, `/root/.config/opencode/skills/...` in image).
<!-- claude --resume a70186ab-eddf-442f-a7c9-6d3aa638f7f4 -->
+10 -5
View File
@@ -64,11 +64,16 @@ RUN uv pip install \
--index-url https://pypi.tuna.tsinghua.edu.cn/simple/ \
--requirements /tmp/requirements.txt
# 3. 在最终镜像中用正规的 npm 安装 opencode-ai,确保系统全局软链接生成完整
RUN npm install -g opencode-ai && npm cache clean --force
RUN opencode --version
COPY skills /root/.config/opencode/skills
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
ca-certificates \
&& rm -rf /var/lib/apt/lists/* \
&& curl -fsSL https://mimo.xiaomi.com/install | bash
ENV PATH="/root/.mimocode/bin:${PATH}"
RUN mkdir -p /root/workspace
COPY skills /root/.config/mimocode/skills
COPY csv2json /root/workspace/csv2json
ENTRYPOINT ["opencode"]
ENTRYPOINT ["mimo"]