restructure per-image dirs + onpush paths filter; add beszel-agent-gpu image
gitea-mcp image / build (arm64) (push) Successful in 13s
beszel-agent-gpu image / build (amd64) (push) Successful in 31s
beszel-agent-gpu image / amend-manifest (push) Successful in 3s
gitea-mcp image / amend-manifest (push) Successful in 9s

This commit is contained in:
thuanle committed 2026-09-07 15:49:50 +07:00
1 parent c0306bba7f
commit b823333d5d
7 files changed
+178 -17

No files matched your search

+43
View File
@@ -0,0 +1,43 @@
FROM alpine:latest
# Cài đặt curl, tar, ca-certificates và thêm jq (để parse JSON)
RUN apk add --no-cache curl tar ca-certificates jq
WORKDIR /app
ARG TARGETARCH
# Gộp việc lấy version, tải file và giải nén vào 1 layer duy nhất để tối ưu
RUN echo "Đang tìm phiên bản mới nhất..." && \
# Chuyển đổi TARGETARCH sang tên file release
case "${TARGETARCH}" in \
amd64) ARCH="x86_64" ;; \
arm64) ARCH="arm64" ;; \
386) ARCH="i386" ;; \
*) echo "Kiến trúc không được hỗ trợ: ${TARGETARCH}" && exit 1 ;; \
esac && \
# 1. Gọi API Gitea và dùng jq để lấy giá trị tag_name
LATEST_VERSION=$(curl -s https://gitea.com/api/v1/repos/gitea/gitea-mcp/releases/latest | jq -r .tag_name) && \
echo "Phát hiện phiên bản mới nhất: ${LATEST_VERSION} cho kiến trúc: ${ARCH}" && \
# 2. Tải binary tương ứng với version và kiến trúc
curl -L -o gitea-mcp.tar.gz "https://gitea.com/gitea/gitea-mcp/releases/download/${LATEST_VERSION}/gitea-mcp_Linux_${ARCH}.tar.gz" && \
# 3. Giải nén và đưa vào thư mục thực thi
tar -xzf gitea-mcp.tar.gz && \
mv gitea-mcp /usr/local/bin/gitea-mcp && \
# 4. Dọn dẹp rác
rm -f gitea-mcp.tar.gz README.md LICENSE
# Cấp quyền thực thi
RUN chmod +x /usr/local/bin/gitea-mcp
# Cấu hình thư mục log
ENV HOME=/app
# Cổng HTTP mặc định (đổi qua flag -p khi chạy nếu cần)
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD curl -s -o /dev/null http://localhost:8080/ || exit 1
# Chạy binary
ENTRYPOINT ["gitea-mcp"]
+12
View File
@@ -0,0 +1,12 @@
# gitea-mcp
Image chase [gitea-mcp](https://gitea.com/gitea/gitea-mcp) — MCP server cho Gitea.
- Base: `alpine:latest`, tự tải binary phiên bản mới nhất từ Gitea releases khi build
- Hỗ trợ kiến trúc: `arm64`
- Tags: `git.thuanle.me/public/gitea-mcp:latest`, `:arm64-latest`
- Build tự động mỗi Chủ nhật lúc 02:00 UTC
```bash
docker run --rm git.thuanle.me/public/gitea-mcp:latest --help
```