2 Commits

Author SHA1 Message Date
typist
1a2bdf5bd0 chore: update Dockerfile to install pnpm globally and modify Gitea CI/CD workflow to specify platform
All checks were successful
Build and Push Docker Image / build (push) Successful in 4m58s
2025-10-27 22:15:05 +08:00
typist
82e10b72c7 chore: update Gitea CI/CD workflow to use local caching for Docker builds
Some checks failed
Build and Push Docker Image / build (push) Failing after 3m35s
2025-10-27 22:06:20 +08:00
2 changed files with 5 additions and 4 deletions

View File

@@ -42,7 +42,8 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64,linux/arm64
cache-from: type=local,src=/cache
cache-to: type=local,dest=/cache,mode=max
# platforms: linux/amd64,linux/arm64
platforms: linux/amd64

View File

@@ -2,7 +2,7 @@
FROM node:22-alpine AS builder
# 安装 pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate
RUN npm install -g pnpm
# 设置工作目录
WORKDIR /app