mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-09 00:56:37 +08:00
build: 优化 Docker/Workflow 构建,使用 Next.js 环境变量注入版本和构建时间,并移除对 package.json 的硬编码替换
This commit is contained in:
@@ -45,6 +45,7 @@ cross-build:
|
||||
--file docker/Dockerfile.cross \
|
||||
--target export \
|
||||
--build-arg VERSION=$(or $(VERSION),dev) \
|
||||
--build-arg BUILD_DATE="$(shell date -u +'%Y-%m-%d %H:%M:%S')" \
|
||||
$(if $(GOOS),--build-arg TARGET_OS=$(GOOS)) \
|
||||
$(if $(GOARCH),--build-arg TARGET_ARCH=$(GOARCH)) \
|
||||
--output type=local,dest=./bin \
|
||||
|
||||
Reference in New Issue
Block a user