Compare commits

..

16 Commits

Author SHA1 Message Date
b8a6822ef5 重整 2026-02-14 20:07:18 +08:00
bc660d97a5 重整 2026-02-14 20:00:37 +08:00
45be8dc7c8 重整 2026-02-14 19:45:51 +08:00
72960224f7 重整 2026-02-14 19:21:21 +08:00
ec6f6895a9 重整 2026-02-14 19:19:13 +08:00
9de14ff3a2 重整 2026-02-14 19:16:29 +08:00
07198f87ce 重整 2026-02-14 19:13:43 +08:00
47647869f0 重整 2026-02-14 19:13:15 +08:00
2d14a3a427 git 改用系统提供的版本 2026-02-14 18:49:49 +08:00
6a6cdaf852 修改定义 2026-02-14 18:02:50 +08:00
62cdb18e6c 1 2026-02-14 17:57:32 +08:00
a5548eb652 临时调整 2026-02-14 17:52:13 +08:00
df5403e3af 修正构建脚本 2026-02-14 17:48:45 +08:00
223242e7aa 修正容器 Dockerfile 2026-02-14 17:07:14 +08:00
3b381be4da 添加构建脚本 2026-02-14 17:04:39 +08:00
bc28e1ce42 基础版本 2026-02-14 15:57:12 +08:00

26
Makefile Normal file
View File

@@ -0,0 +1,26 @@
# 切换到 bash
SHELL := /bin/bash
# 定义变量
REGISTRY ?= crpi-kbfsbvlqwt19zxum-vpc.cn-hongkong.personal.cr.aliyuncs.com/registry-yqxpro
GIT_SHA := $(shell git rev-parse --short HEAD)
# 定义所有需要构建的子目录
SUBDIRS = common-base develop-base universal-base
all: $(SUBDIRS)
# 目录构建规则
$(SUBDIRS):
@echo "Building $@..."
@pushd $@ && \
npx devcontainer build \
--platform linux/amd64,linux/arm64 \
--image-name $(REGISTRY)/devcontainers-$@ \
--cache-to type=local,dest=$(HOME)/docker-buildcache/devcontainers/$@,mode=max \
--cache-from type=local,src=$(HOME)/docker-buildcache/devcontainers/$@ && \
docker push $(REGISTRY)/devcontainers-$@ &&\
popd
# 伪目标声明
.PHONY: all $(SUBDIRS)