This commit is contained in:
www.xueximeng.com
2025-10-24 17:35:22 +08:00
parent afafccf0ea
commit ab2faba2b8
2 changed files with 1 additions and 2 deletions

1
.gitignore vendored
View File

@@ -1,2 +1 @@
.DS_Store .DS_Store
cache

View File

@@ -1,7 +1,7 @@
# 构建阶段 # 构建阶段
# 使用 --platform=$BUILDPLATFORM 确保构建器始终在运行 Actions 的机器的原生架构上运行 (通常是 linux/amd64) # 使用 --platform=$BUILDPLATFORM 确保构建器始终在运行 Actions 的机器的原生架构上运行 (通常是 linux/amd64)
# $BUILDPLATFORM 是 buildx 自动提供的变量 # $BUILDPLATFORM 是 buildx 自动提供的变量
FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS builder FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder
# 安装构建依赖 # 安装构建依赖
RUN apk add --no-cache git ca-certificates tzdata RUN apk add --no-cache git ca-certificates tzdata