构建脚本准备

This commit is contained in:
2026-02-16 11:22:33 +08:00
parent 41ad420c72
commit 3e4c54e29a
6 changed files with 133 additions and 0 deletions

29
build.sh Normal file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
set -e
export REGISTRY=registry.yqxpro.com
pushd common-base
npx devcontainer build \
--platform linux/amd64,linux/arm64 \
--image-name ${REGISTRY}/devcontainers/common-base --push \
--cache-to type=registry,ref=${REGISTRY}/devcontainers/common-base:buildcache,mode=max \
--cache-from type=registry,ref=${REGISTRY}/devcontainers/common-base:buildcache
popd
pushd develop-base
npx devcontainer build \
--platform linux/amd64,linux/arm64 \
--image-name ${REGISTRY}/devcontainers/develop-base --push \
--cache-to type=registry,ref=${REGISTRY}/devcontainers/develop-base:buildcache,mode=max \
--cache-from type=registry,ref=${REGISTRY}/devcontainers/develop-base:buildcache
popd
pushd universal-base
npx devcontainer build \
--platform linux/amd64,linux/arm64 \
--image-name ${REGISTRY}/devcontainers/universal-base --push \
--cache-to type=registry,ref=${REGISTRY}/devcontainers/universal-base:buildcache,mode=max \
--cache-from type=registry,ref=${REGISTRY}/devcontainers/universal-base:buildcache
popd