6 Commits

Author SHA1 Message Date
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
typist
1219deea89 chore: update Gitea CI/CD workflow to use secrets for Docker registry credentials
Some checks failed
Build and Push Docker Image / build (push) Failing after 5m38s
2025-10-27 20:50:10 +08:00
typist
b5b9d94119 chore: update Gitea CI/CD workflow to use new variable syntax for Docker registry and metadata
Some checks failed
Build and Push Docker Image / build (push) Failing after 4m3s
2025-10-27 20:33:06 +08:00
typist
d5959ca3c3 chore: update Gitea CI/CD workflow to conditionally enable 'latest' Docker image tag based on branch name
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m1s
2025-10-27 20:20:59 +08:00
185ce1fac1 Merge pull request 'feat: add Docker support with multi-stage build and CI/CD workflow' (#2) from chore/build-and-push-docker-image into main
Reviewed-on: #2
2025-10-27 20:17:04 +08:00
typist
c11bb6d637 feat: add Docker support with multi-stage build and CI/CD workflow
- Introduced Dockerfile for multi-stage application build and deployment using Nginx.
- Added .dockerignore to exclude unnecessary files from the Docker context.
- Created nginx.conf for server configuration, including Gzip compression and SPA routing.
- Implemented Gitea CI/CD workflow for building and pushing Docker images on version tags.
2025-10-27 20:16:22 +08:00
2 changed files with 2 additions and 3 deletions

View File

@@ -44,6 +44,5 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=local,src=/cache
cache-to: type=local,dest=/cache,mode=max
# platforms: linux/amd64,linux/arm64
platforms: linux/amd64
platforms: linux/amd64,linux/arm64

View File

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